Replies: 3 comments 4 replies
If I remember correctly, I simply looked at the most frequent
See above. I presume that there are simply not a lot of translations for names in Slovakian and
I can expand the list at any time on the export server. Reducing is more of an issue because people might already be using it and we don't want surprises for them. (I might make an exception for Breton because I just discovered that 80% of the names are made-up translations.)
As long as we are talking about the JSON dump, I don't think there is any significant difference in size. I'm very much open to adding more languages. Can you give me the list of language codes for the languages above, so I don't have to look them up? |
|
Thanks - that's a very useful answer, and the taginfo-vs-Nominatim point explains a lot. It would neatly account for why Slovak, Danish and Norwegian fell off while languages that get translated into a lot stayed on. Here are the codes, grouped by priority so you can draw the line wherever makes sense. Tier 1 - EU official languages currently missing (the eight from my first post)
Tier 2 - national languages of other European countries
Norwegian stands out here: ~5M speakers, very actively mapped, and no dump language at all. Tier 3 - regional/minority languages with real OSM usage
This tier is where the quality concern you raised about Breton is most likely to bite, so it may be the natural place to stop - or to check counts first. On picking the set generallyRather than growing the list by request forever, would it be worth deriving it from Nominatim statistics with a frequency threshold, as you suggested? That would fix the taginfo bias at the root, be self-maintaining as OSM grows, and give a defensible answer when the next person asks for their language. I understand additions are effectively one-way given you don't want to surprise existing users - so happy for you to start with Tier 1 only if that's the safer call. Since freemap.eu covers all of Europe and the UI is localised into several languages, though, the value for us really is the broader set rather than |
|
I decided to go a different way. Nominatim has a list of official languages per country. Let's simply support all those. It is fair to assume that these represent languages in actual use as the list is somewhat curated. And it is easy to generate. The full list would be: Adding |
Uh oh!
There was an error while loading. Please reload this page.
Adding more languages to the JSON dumps — eight EU official languages are missing
Hi,
I maintain the geocoding setup for Freemap Slovakia (OZ Freemap Slovakia, the Slovak OpenStreetMap chapter), which runs freemap.sk and freemap.eu. We currently use nominatim.openstreetmap.org for search and are planning to move to a self-hosted Photon instance — exactly the migration the Nominatim usage policy asks users at our traffic level to make.
While preparing the import I ran into a blocker, and I wanted to ask about it before assuming it's intentional.
The gap
The language list published in the "A New Look for Photon Dumps" blog post is:
en, ru, zh, ja, uk, ar, ko, ca, fr, de, fi, be, pl, es, sr, br, he, sv, el, it, th, ga, oc, kn, ur, ms, nl, my, eu, ka, hu, fa, hi, pt, lt, ro, csI confirmed this against the actual data — the
CountryInfoheader ofphoton-dump-austria-1.0-latest.jsonl.zstcarriesname:csbut noname:sk.Of the 24 EU official languages, eight are absent: Slovak, Slovenian, Croatian, Bulgarian, Danish, Estonian, Latvian, Maltese. Meanwhile the list includes Kannada, Burmese, Urdu, Thai, Breton and Occitan. I couldn't work out the selection principle, which is partly why I'm asking rather than assuming.
Why it matters
Because
-languagescan only select from what's in the dump, this isn't something a downstream user can configure around. Concretely: a Slovak user searching for "Paríž" (Paris) finds it on Nominatim today, because Nominatim indexes allname:*tags. With the Photon dumps it cannot work at all.Slovak names inside Slovakia are fine via the local
nametag — it's exonyms for foreign places that break. So for us the recommended migration away from the public Nominatim is a functional regression, and the same would apply to Croatian, Danish, Bulgarian and Slovenian users.Why now
The 1.0.0 release notes state that "importing many languages into the database no longer slows down operations". If the historical reason for a curated list was import or query cost under the old ElasticSearch schema, that constraint appears to be gone.
There also seems to be precedent for growing the list:
fawasn't supported.Both languages are in the export set today. Discussion #528 mentions the dumps once carried only en/de/fr, so the list has clearly expanded over time.
(Related: #33, open since 2014, asks for the broader "index all
name:*" case — I'm asking for something much narrower.)Questions
skwas left out, or is it simply that nobody has asked?The ask
If the answers point that way, would you consider adding the missing EU official languages — or at minimum
sk— to the export configuration? Happy to help test, or to run an import against a trial dump and report back.Thanks a lot for the dumps and the export service generally — they're what makes self-hosting realistic for a small nonprofit like ours.
Martin Ždila
OZ Freemap Slovakia
All reactions