[OSM-dev] Numeric OSM tag keys

Andy Townsend ajt1047 at gmail.com
Fri Aug 5 12:06:13 UTC 2016


On 05/08/2016 12:51, Stadin, Benjamin wrote:
> Hi,
>
> What is the allowed syntax for OSM tag keys? Is there actually a
> restriction, like OSM tag keys must follow common variable name syntax?

Not really.  You can see what tags are in use.  A search for tags 
containing "0" http://taginfo.openstreetmap.org/search?q=0 lists 
https://www.openstreetmap.org/node/2992379650 on the last page.

Now obviously that's rubbish (and we can guess what the mapper actually 
meant there) but if you're consuming OSM data you'll need to be able to 
deal with keys such as that.


Cheers,

Andy




More information about the dev mailing list