Search for content

Language of the response (OSM)

If you specify the languages query parameter in the request, then the names of e.g. places, countries, cities, streets... will be returned in one of the specified languages, if available in the data. While country and city names are available in many languages, this is less true for street names.

The languages parameter has to be formatted according to the BCP 47 language tag specification. Such a language tag starts with the ISO-639-1 language code optionally followed by a sub-tag for the script (ISO 15924, usually written in Title Case), the variant or other extensions. In the following example the desired language is set to English.

It is possible to specify more than one language in a comma separated list. The result is returned in the language on the first position of the list. If it is not available in that language, then it is returned in the language on the second position and so on.

https://api.myptv.com/geocoding-osm/v1/places/by-text?searchText=Sandkaul&languages=en

The following list shows examples of supported language tags:

LanguageBCP 47
Arabicar
Bulgarianbg
Catalan; Valencianca
Chinesezh
Croatianhr
Czechcs
Danishda
Dutch; Flemishnl
Englishen
Finnishfi
Frenchfr
Georgianka
Greekel
Italianit
Japaneseja
Koreanko
Malayms
Norwegianno
Polishpl
Portuguesept
Russianru
Romanianro
Serbiansr
Sloveniansl
Slovaksk
Spanishes
Swedishsv
Thaith
Turkishtr
Ukrainianuk
Vietnamesevi