Hi all!

I was checking out this map creator page that uses OSM - http://developer.skobbler.de/mapcreator and I noticed there was an option to use transliteration. I was just wondering, is it possible to do this with reverse geocoding in Open Street Maps? It would just be super handy for me at the moment to specify the language results were coming back as.

Thanks Pete

asked 31 Oct '14, 23:10

Peteskiii's gravatar image

Peteskiii
46226
accept rate: 0%


There's even a URL parameter accept_language available in case you want to override your browser's default language. This might come in handy, if you call this stuff from your own web application.

Example:

http://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987&accept-language=de

http://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987&accept-language=fr

permanent link

answered 01 Nov '14, 12:33

mmd's gravatar image

mmd
5.6k4988
accept rate: 37%

Awesome! Thanks, that's perfect!

(01 Nov '14, 21:43) Peteskiii

The Nominatim geocoder honours the Accept-Language HTTP header and will return results in the requested language - only if it has been mapped of course. This has nothing to do with transliteration though, but instead just influences which name:xx tag will be used.

To see the difference, compare the output of

curl -H Accept-Language:de 'http://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987'

and

curl -H Accept-Language:en 'http://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987'
permanent link

answered 01 Nov '14, 00:34

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
71.6k846481116
accept rate: 24%

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:

×73
×63
×4

question asked: 31 Oct '14, 23:10

question was seen: 9,489 times

last updated: 01 Nov '14, 21:45

powered by OSQA