NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

nominatim city names

https://nominatim.openstreetmap.org/reverse gives me an xml with the city name of the location. In Bulgary the name is in correct Cyrillic characters but, unfortunately, de greek cities come in latin characters. Why?

latin characters nominatim

asked 26 Feb '20, 23:47

nestos's gravatar image

nestos
26112
accept rate: 0%


Do you query from the browser? If so, nominatim takes your browsers accept-language header and tries to serve that. So you have to change your browsers header to "el" or use the accept-language query param, e.g.:

https://nominatim.openstreetmap.org/reverse.php?lat=37.98412&lon=23.72831&zoom=10&format=xml&accept-language=el

permanent link

answered 27 Feb '20, 07:13

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 27 Feb '20, 10:41

No, I query from a c# program. I discoverd that the lager cities always come in latin (exonym), but small villages in local name and characters (endonym). But &accept-language=el works for all! Thanks a lot!

permanent link

answered 01 Mar '20, 20:06

nestos's gravatar image

nestos
26112
accept rate: 0%

For smaller cities and villages you normally don't have names in other languages in the data that's why the original is returned. As your C# program probably did not a include an accept language header, you'll have to add that either as a header or as a query param to get the desired language for larger places and cities where serveral options are present in the data.

(01 Mar '20, 22:11) Spiekerooger

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×5
×4

question asked: 26 Feb '20, 23:47

question was seen: 2,327 times

last updated: 01 Mar '20, 22:12

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum