osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Use more tags to determine names of footways and sidepaths

Open jarek opened this issue 2 months ago • 1 comments

Feature

Use street:name and is_sidepath:of:name to determine way names when name is not tagged.

This would particularly affect the foot profile, and perhaps the bicycle profile.

Where sidewalks and sidepaths are mapped as separate ways in OSM, OSRM will frequently give guidance like "Turn right, walk 150 m; Turn left, walk 15 m; Turn right, walk 10 m; Turn left, walk 150 m". I would like to see something more like "Turn right onto Front Street, walk 150 m; Turn left, walk 15 m; Turn right, walk 10 m; Turn left onto Simcoe Street, walk 150 m".

It is not trivial to automatically associate the sidewalks back to their streets, and there is no consensus in OSM community for using the street name in name tag of sidewalks. Two primary alternates are tagging the street name in is_sidepath:of:name and street:name tags. These could conceivably be used as fallback when name tag is not set for highway=footway and perhaps =cycleway and =path.

OSM wiki: https://wiki.openstreetmap.org/wiki/Key:footway#Association_with_the_street (disclaimer: I recently re-wrote this wiki section)

Sample URLs:

  • Area where sidewalks currently have name tags: https://routing.openstreetmap.de/routed-foot/route/v1/driving/-73.56545090675355,45.514929291239135;-73.56462478637697,45.5103281199579?overview=false&alternatives=true&steps=true OSRM frontend display: A list of OSRM walking directions that give street names
  • Area where sidewalks are not currently mapped as separate ways: https://routing.openstreetmap.de/routed-foot/route/v1/driving/3.762972950935364,51.01050110404277;3.758257627487183,51.00846920507803?overview=false&alternatives=true&steps=true OSRM frontend display: A list of OSRM walking directions that give street names
  • Area where sidewalks are since recently mapped with is_sidepath:of:name: https://routing.openstreetmap.de/routed-foot/route/v1/driving/-79.3874216079712,43.64411124980914;-79.38679933547975,43.64949133795468?overview=false&alternatives=true&steps=true OSM frontend display: A list of OSRM walking directions that give only instructions like 'head east, turn left, turn right' with no street names This is also a possible test area for handling a sidewalk having both name and is_sidepath:of:name which are different (e.g. way/868914768).

jarek avatar Oct 14 '25 00:10 jarek

From the OSM wiki, there are multiple ways mappers associate sidewalks with street names:

Tag Usage Description
is_sidepath:of:name ~15,500 uses Name of the street the sidepath follows
street:name ~9,100 uses Alternative tag for the same purpose

Related tags that identify sidepaths:

  • footway=sidewalk - marks a footway as a sidewalk
  • cycleway=sidepath - marks a cycleway as a street-side path
  • is_sidepath=yes - generic sidepath marker

Currently only cycle.travel router supports these tags.

afarber avatar Nov 30 '25 08:11 afarber