Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Nominatim: Administrative/State names - "translated" version not used? #2499

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: ToB
[Submitted to the original trac issue database at 1.26pm, Tuesday, 24th November 2009]

I have some problems finding the right relation, but searching for "Lower Saxony" with language=DE finds:

"State Lower Saxony, Bundesrepublik Deutschland, Europa", "Administrative Lower Saxony, Bundesrepublik Deutschland"

The relation I found had name="Niedersachsen", name:en="Lower Saxony". Thus I had expected that it shows "Niedersachsen" with language=DE. However, I might have looked at the wrong relation (http://www.openstreetmap.org/browse/relation/62771).

Similarly for "Hamburg": "Hamburg, Freie und Hansestadt Hamburg, Free and Hanseatic City of Hamburg, Bundesrepublik Deutschland, Europa" -- Here, the word "Free and Hanseatic City of Hamburg" appears twice - once in German and once in English. Here, the relation http://www.openstreetmap.org/browse/relation/62782 contains also name= and name:de=. But I do not understand why it appears this time in both versions.

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 1.53pm, Tuesday, 24th November 2009]

The problem is caused by the relations not having a name:de version of the name only a 'name' version since the system currently has no way to determine the local language.

Almostly certainly your browser language preferences are: de, en, etc... which results in the system looking for (in order):

name:de, name:en, name

so without name:de then name wins

To fix this either the tag needs name:de or the system needs some way to determine the local language for every country.

@openstreetmap-trac
Copy link
Author

Author: washeck
[Added to the original trac issue at 6.36pm, Monday, 10th October 2011]

I was also hit by this. Do you have an idea how to determine the local language for the country and respect it in Nominatim? I don't think duplicating the tags with name="X" and name:de="X" is the way to go.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 3.45pm, Saturday, 14th July 2012]

Nominatim now has default languages for each country. The list of language mappings is available [http://wiki.openstreetmap.org/wiki/Nominatim/Country_Codes in the wiki].

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant