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:
Language | BCP 47 |
---|---|
Arabic | ar |
Bulgarian | bg |
Catalan; Valencian | ca |
Chinese | zh |
Croatian | hr |
Czech | cs |
Danish | da |
Dutch; Flemish | nl |
English | en |
Finnish | fi |
French | fr |
Georgian | ka |
Greek | el |
Italian | it |
Japanese | ja |
Korean | ko |
Malay | ms |
Norwegian | no |
Polish | pl |
Portuguese | pt |
Russian | ru |
Romanian | ro |
Serbian | sr |
Slovenian | sl |
Slovak | sk |
Spanish | es |
Swedish | sv |
Thai | th |
Turkish | tr |
Ukrainian | uk |
Vietnamese | vi |