| Pfad: | /api/search | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Beschreibung: | Sucheanfrage an TagFinder für OpenStreetMap Tags. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameter: |
query- Der Suchbegriff vom Typ STRING. (erforderlich) lang- Gibt die Sprache des Suchbegriffs an. Wechselt nur die Reihenfolge, in der zuerst nachgeschlagen wird. Unterstützt: 'de' und 'en'. (optional, default: 'en') format- Bei Wert json_pretty wird die JSON Rückgabe eingerückt. (optional) callback- JSONP Callback Parameter. (optional) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bemerkung: | Wenn für den Suchbegriff keine Tags gefunden wurden, wird ein leeres ARRAY zurückgegeben. Mit Anführungszeichen um ein Wort kann die Rechtschreibkorrektur und der Übersetzer deaktiviert werden. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Resultat: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Beispiel: | /api/search?query=Zoo&format=json_pretty&lang=de | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| UI Beispiel: | /search?query=zoo |
| Path: | /api/search | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description: | Query TagFinder for OpenStreetMap tags. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameters: |
query- Search query of type STRING. (required) lang- Defines language of the search term. Only changes lookup order. Currently supported: 'en' and 'de'. (optional, default: 'en') format- With value json_pretty the JSON output gets pretty-printed. (optional) callback- JSONP callback parameter. (optional) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes: | If no Tags were found for the search query, an empty ARRAY is returned. Using quotation marks around terms turns off the spell correction and the translator. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Result: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example: | /api/search?query=Zoo&format=json_pretty&lang=de | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| UI Example: | /search?query=zoo |
| Pfad: | /api/tag | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Beschreibung: | Erhalte Taginformationen für einen spezifischen Schlüssel oder Schlüssel=Wert Paare. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameter: |
key- Der Schlüssel des Tags vom Typ STRING. (erforderlich) value- Der Wert des Tags vom Typ STRING. (optional) format- Bei Wert json_pretty wird die JSON Rückgabe eingerückt. (optional) callback- JSONP Callback Parameter. (optional) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bemerkung: | Es handelt sich hier um einen direkten Zugriff und keine Suchanfrage, d.h. die Gross- und Kleinschreibung muss beachtet werden. Falls der Tag nicht gefunden wurde, wird ein leerer HASH zurückgegeben. Die Rückgabe entspricht sonst der von /api/search ohne 'searchMeta'. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Resultat: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Beispiel: | /api/tag?key=shop&value=pet | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| UI (kein Beispiel): | /search?query=shop%3Dpet |
| Path: | /api/tag | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description: | Get tag information for one specific key or key=value pair. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameters: |
key- The key of the tag of type STRING. (required) lang- The value of the tag of type STRING. (optional) format- With value json_pretty the JSON output gets pretty-printed. (optional) callback- JSONP callback parameter. (optional) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes: | The webservice is case-sensitive: Its using direct access instead of querying it. If no tag is found an empty HASH is returned, otherwise the returned JSON is the same as /api/search without 'searchMeta'. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Result: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example: | /api/tag?key=shop&value=pet | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| UI (no example): | /search?query=shop%3Dpet |
| Pfad: | /api/terms | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Beschreibung: | Erhalte Informationen zu verwandten Begriffen, Ober- und Unterbegriffen. | ||||||||||||||||||||||||||||||
| Parameter: |
term- Der Begriff für den Informationen angefordert werden, vom Typ STRING. (erforderlich) format- Bei Wert json_pretty wird die JSON Rückgabe eingerückt. (optional) callback- JSONP Callback Parameter. (optional) |
||||||||||||||||||||||||||||||
| Bemerkung: | Die Gross- und Kleinschreibung des erforderlichen Parameters muss beachtet werden. Falls dazu keine passenden Begriffe gefunden wurden, sind die jeweiligen Listen leer. | ||||||||||||||||||||||||||||||
| Resultat: |
|
||||||||||||||||||||||||||||||
| Beispiel: | /api/terms?term=cat&format=json_pretty | ||||||||||||||||||||||||||||||
| UI (kein Beispiel): | /search?query=cat |
| Path: | /api/terms | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description: | Get information about related, narrower and broader terms. | ||||||||||||||||||||||||||||||
| Parameters: |
term- The term to get information for, of type STRING. (required) format- With value json_pretty the JSON output gets pretty-printed. (optional) callback- JSONP callback parameter. (optional) |
||||||||||||||||||||||||||||||
| Notes: | The case of the required parameter needs to be correct. If no appropriate terms are found, the according lists will be empty. | ||||||||||||||||||||||||||||||
| Result: |
|
||||||||||||||||||||||||||||||
| Example: | /api/terms?term=cat&format=json_pretty | ||||||||||||||||||||||||||||||
| UI (no example): | /search?query=cat |
| Pfad: | /api/suggest | |||
|---|---|---|---|---|
| Beschreibung: | Gibt Vorschläge für einen Suchbegriff. Es wird eine Fehlerkorrektur verwendet. | |||
| Parameter: |
query- Der Begriff für den Vorschläge gesucht werden soll, vom Typ STRING. (erforderlich) lang- Gibt die Sprache an, für welche Vorschläge gesucht werden sollen. Unterstützt: 'de' und 'en'. (optional, default: alle) format- Bei Wert json_pretty wird die JSON Rückgabe eingerückt. (optional) callback- JSONP callback parameter. (optional) |
|||
| Bemerkung: | Falls keine passenden Vorschläge gefunden wurde, wird ein leeres ARRAY zurückgegeben. (Siehe auch: opensearch.xml) | |||
| Resultat: |
|
|||
| Beispiel: | /api/suggest?query=tabaco&lang=en |
| Path: | /api/suggest | |||
|---|---|---|---|---|
| Description: | Get suggestions for a term. Uses a spelling correction. | |||
| Parameters: |
query- The term to get suggestions for, of type STRING. (required) lang- Defines the language of the suggestions to return. Currently supported: 'en' and 'de'. (optional, default: all) format- With value json_pretty the JSON output gets pretty-printed. (optional) callback- JSONP callback parameter. (optional) |
|||
| Notes: | If no suggestions could be found an empty ARRAY is retuned. (See also: opensearch.xml) | |||
| Result: |
|
|||
| Example: | /api/suggest?query=tabaco&lang=en |