[openstreetmap/openstreetmap-website] Increase may key and value max length (#2025)
Frederik Ramm
notifications at github.com
Fri Oct 12 16:23:06 UTC 2018
I agree with TomH - there's no technical reason for having a limit, but it serves as a reminder for people that tags are supposed to be human-readable and if you find yourself adding structured data to OSM in a way that makes you hit the 255 character limit, then you are very likely doing things you shouldn't. An opening hours string longer than 255 characters is practically impossible to understand or edit without specialist software (i.e. an editor that has support for a complex opening hours schema). This is undesirable to have, because once our tags are so complicated that they need software support to edit, they also lose any flexibility - once support is baked into N software programs, the tag is certain to never change, even if the circumstances would make it necessary.
So my suggestion is, don't use tags longer than 255 characters, and if you invent a hack around this limitation, at least it's going to be unsupported by most of the applications and therefore condemned to be a niche thing.
If opening hours become more complicated than 255 characters then I would prefer it to just revert to a human-readable string that describes the issue, which is very likely to fit in 255 characters.
--
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/2025#issuecomment-429382194
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181012/ed710023/attachment.html>
More information about the rails-dev
mailing list