Skip to content

Instantly share code, notes, and snippets.

@karussell
Last active April 2, 2023 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karussell/6c4be5b3425244c618c695b66d00fc96 to your computer and use it in GitHub Desktop.
Save karussell/6c4be5b3425244c618c695b66d00fc96 to your computer and use it in GitHub Desktop.

For an overview of which tags are used. See this issue for the discussion.

Nodes:

Tag Used Description
barrier Yes depending on the vehicle the tag is used to change access
crossing soon crossing=* and level_crossing=railway is stored in crossing
crossing:markings soon stored in crossing
fords Yes stored in road_environment

Ways:

Tag Used Description
access tags TODO Yes stored as boolean in car_access, bike_access, foot_access and as enum (incl. private/delivery) in road_access. The value permit is treated as private.
bicycle Yes used in bike vehicles, but also in get_off_bike (bicycle=dismount)
footway soon stored in footway
hazmat Yes stored in hazmat
hazmat:adr_tunnel_cat Yes stored in hazmat_tunnel
hazmat:water Yes stored in hazmat_water
hgv Yes stored in hgv
highway Yes many different values are stored in the enum road_class. The values that ends with _link are stored as the same road_class but set a boolean road_class_link to true
horse_scale Yes stored in horse_rating (0-6). 0 means no tag.
incline Yes used for wheelchair_access but might be removed as external elevation data is used as single source
junction Yes stored in boolean roundabout if junction=roundabout
kerb Yes used for wheelchair_access
lanes Yes store count in lanes up to 6
maxaxleload Yes stored in max_axle_load
maxheight Yes stored in max_height
maxheight:physical Yes Stored in max_height
maxlength Yes stored in max_length
maxspeed Yes Used in various vehicles and stored as km/h in max_speed where country rules can adjust it
maxspeed:forward & backward Yes See maxspeed
maxgcweight Yes stored in max_weight
maxweight Yes stored in max_weight
maxwidth(:physical) Yes stored in max_width
mtb:scale Yes stored in mtb_rating (0-7). 0 means no tag. A mapping mtb:scale=0 corresponds to 1 and mtb:scale=1 to 2 until 7.
railway Yes railway=platform for different vehicles and for get_off_bike
sac_scale Yes stored in hike_rating (0-6). 0 means no tag.
smoothness Yes many values are used in smoothness
surface Yes many values are used in surface
toll Yes stored in toll. Can be overwritten from country rules.
tracktype Yes stored in track_type and used in foot and bike vehicles
tunnel Yes in multiple vehicles e.g. in bike to avoid tunnels if no separate cycleway but also in hazmat_tunnel if additional hazmat:A=no tags
width Yes stored in max_width

Relations:

Tag Used Description
route=bicycle Yes stored in bike_network. Only a single value per road is stored and the largest network is picked
route=ferry Yes stored implicit in various boolean values like car_access, bike_access and foot_access. Additionally as FERRY in road_environment
route=hiking, route=foot Yes stored in foot_network. Only a single value per road is stored and the largest network is picked
type=restriction Yes used for turn restrictions. A via node or way is supported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment