Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support alt_name:XX tag? #583

Open
SiarheiFedartsou opened this issue Dec 1, 2024 · 3 comments
Open

Support alt_name:XX tag? #583

SiarheiFedartsou opened this issue Dec 1, 2024 · 3 comments

Comments

@SiarheiFedartsou
Copy link

SiarheiFedartsou commented Dec 1, 2024

Use-cases

There are localized alt_name:XXX tags (e.g. https://www.openstreetmap.org/way/31151623), which we don't import right now. Would be nice to do so.

Attempted Solutions

#582

Proposal

Let's parse it and add as name alias for given language.

@SiarheiFedartsou
Copy link
Author

SiarheiFedartsou commented Dec 1, 2024

Worth saying that all tags we have in schema in theory (and I believe in practice as well) may be localized, should we support all of them in the same way?

var OSM_NAMING_SCHEMA = {
  'name':             'default',
  'loc_name':         'default',
  'alt_name':         'default',
  'short_name':       'default',

  // note: these aliases are currently disabled because they are not being used when querying
  // 'int_name':         'international',
  // 'nat_name':         'national',
  // 'official_name':    'official',
  // 'old_name':         'old',
  // 'reg_name':         'regional',
  // 'sorting_name':     'sorting'
};

@missinglink
Copy link
Member

Looking at the TagInfo stats, unfortunately I don't think this is going to be super impactful, this might be why we didn't implement back in 2018.

2.4M Undefined
181000 English
22000 Mandarin
6094 Spanish
1943 Thai

Funnily enough it seems that supporting alt_name:en would have the biggest benefit, but after that and Mandarin the benefits diminish quickly, with Spanish (the most popular Indo-European language) only having 6094 entries in all of OSM, presumably some of those features would not be importable due to other tags.

Something to consider, not saying it's a bad idea, just wanted to better understand the value.

@SiarheiFedartsou
Copy link
Author

@missinglink
Yes, I agree it may be not that impactful, but it seems to be not a rocket science to implement, so may be worth trying, or may be I don't get some important detail? WDYT?

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

No branches or pull requests

2 participants