autocomplete/search (GET)

Ressourcen-Pfad

http://autocomplete.yellowmap.de/Autocomplete/Search

Description

This interface answers an autocomplete request.

Parameters

Name Description Data-type
Query The input string of the user. No need to add AND and OR; separator is the space character. The input is interpreted in the backend of YellowMap.
[required]
string
Locales Auto-complete can be limited to individual countries. The countries can be passed as ISO 639-1 . The country codes are separated by commas.
If you want to search in all countries, the empty string must be passed for locales.
required]
string
Count The maximum number of hits in the return list.
[required]
string
Type One of the following values: jsonpjsonprotobuf (Protocol Buffer). string

Return (application/json or text/javascript)

The return container is of type AutocompleteResult. The character set is utf-8.

Examples

Note that in this example as well as in the following one AuthToken must be set.

Search in "augarten str ka"; return is of type JSON.

http://autocomplete.yellowmap.de/Autocomplete/Search?Locales=de&Query=augarten+str+ka&Count=10&AuthToken={AUTHENTICATION_TOKEN}&Type=json

Search in "augarten str ka"; return is of type JSONP.

http://autocomplete.yellowmap.de/Autocomplete/Search?Locales=de&Query=augarten+str+ka&Count=10&AuthToken={AUTHENTICATION_TOKEN}&Type=jsonp&callback=jQuery21109961413331296045_1446192839041&_=1446192839042

Search in "augarten str ka"; return is of type Protocol Buffer.

http://autocomplete.yellowmap.de/Autocomplete/Search?Locales=de&Query=augarten+str+ka&Count=10&AuthToken={AUTHENTICATION_TOKEN}&type=protobuf

Error

Error code Description
400
BAD REQUEST, the request was made incorrectly.
412
PRECONDITION FAILED, the token was not passed.