Hi all,
I’ve noticed an inconsistency in how population
tags are handled in OpenStreetMap and its ecosystem. Specifically:
- Some
population
values contain spaces (e.g.,251 405
), which breaks numeric parsing in tools like Overpass. - Overpass API doesn’t currently strip whitespace before applying numeric filters like
(if: t["population"] > 10000000)
, causing incorrect results. - OSM editors like iD and JOSM currently allow these values without warnings, even though they break downstream use.
Suggested actions:
- Overpass API: Should ideally ignore spaces or normalize numbers before comparison.
- Tagging standards: Recommend storing
population
as a plain integer without formatting (e.g., no spaces or commas). - Editor validation: iD and JOSM could flag
population
tags that are not purely numeric.
Would it make sense to propose a community-wide cleanup and validator rules for this? And could Overpass consider supporting whitespace-tolerant numeric comparisons?
Thanks!
Johan