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, 23:47

nestos's gravatar image

nestos
2612
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, 07:13

Spiekerooger's gravatar image

Spiekerooger
696816
accept rate: 13%

edited 27 Feb, 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:06

nestos's gravatar image

nestos
2612
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, 22:11) Spiekerooger
Your answer
toggle preview

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
×3

question asked: 26 Feb, 23:47

question was seen: 280 times

last updated: 01 Mar, 22:12

powered by OSQA