This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Why does it show the Spanish name “Pensilvania” in a Nominatim page?

2

This Nominatim page shows the Spanish Pensilvania, instead of Pennsylvania.

In case my Accept-Language is relevant, I have multiple English languages ("en-US", "en", "eng", and more), then eventually "es-es" and "es" lower in the list.

EDIT: When I use curl with no Accept-Language headers, it displays the English name. Looking at the relation looks like the issue is that name is Pennsylvania, but there is no name:en, probably because English is the primary local language.

My request explicitly allows en (preferred, but there is no name:en) and es (allowed, and there is name:es, but less preferred). What's the best way to address this (let me know if I should ask this follow-up separately)? Should name:en be added even though the local language is English?

asked 15 Jul '12, 05:24

mattflaschen's gravatar image

mattflaschen
2266818
accept rate: 0%

edited 03 Jun '13, 02:07

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


2 Answers:

7

The problem is indeed with the missing name:en tag. Nominatim doesn't know that the name tag in the US should default to English. That is a bug in Nominatim not with your tagging. It is common practice in OSM to leave out the localized name tag (i.e. name:en) if there is only one official language in a country.

Nominatim will update to a new version in a few weeks where the handling of local languages has been improved. So, just ignore the problem for a while and it will hopefully go away by itself.

answered 16 Jul '12, 09:22

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

hopefully that'll also fix the US state name showing up in Japanese when you search for cities!

(16 Jul '12, 14:35) neuhausr

0

Dear Mattflaschen, I should use the original name, but I like the different lanquages. This platform however has accepted English as standard for all. Thats all and Pennsylvania should it be.

answered 15 Jul '12, 16:00

Hendrikklaas's gravatar image

Hendrikklaas
9.3k207238387
accept rate: 5%

Source code available on GitHub .