[openstreetmap/openstreetmap-website] emergency=yes tag regarded as a feature instead of an access tag (#3170)
Tom Hughes
notifications at github.com
Sat Apr 10 16:02:41 UTC 2021
There isn't really any "classification" code at all, just a long list of key/value pairs and translatable names for them.
If there is more than one tag on an object that exists in our translations then it's basically random which one is used in the list.
I believe https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/javascripts/index/query.js#L80 is the relevant code and as you can see it just searches the keys at https://github.com/openstreetmap/openstreetmap-website/blob/master/config/locales/en.yml#L505 and takes the first match it finds.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3170#issuecomment-817158710
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210410/8d07934a/attachment.htm>
More information about the rails-dev
mailing list