Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.33k stars 3.34k forks source link

Shouldn't profiles/car.lua ignore the "highway": "footway" tag? #7023

Closed afarber closed 3 weeks ago

afarber commented 4 weeks ago

Good evening,

there is no handling of the "highway": "footway" tag in the "master" branch profiles/car.lua

Shouldn't the tag be present there?

When I use a Python script to print the OSM way objects from the romania-latest.osm.pbf then there are quite many ways that seem to be inaccessible by cars:

   0.73 km "0 - 1 km" https://www.openstreetmap.org/way/12190336 {'foot': 'yes', 'highway': 'footway', 'is_in:city': 'Galați'}
   0.04 km "0 - 1 km" https://www.openstreetmap.org/way/1309937416 {'highway': 'footway', 'name': 'Piața Morii'}
   0.04 km "0 - 1 km" https://www.openstreetmap.org/way/1309937417 {'highway': 'service', 'maxspeed': 'RO:urban', 'name': 'Piața Morii', 'source:maxspeed': 'implicit', 'surface': 'asphalt'}
   0.31 km "0 - 1 km" https://www.openstreetmap.org/way/1309939555 {'footway': 'sidewalk', 'highway': 'footway', 'surface': 'asphalt'}
   0.31 km "0 - 1 km" https://www.openstreetmap.org/way/1309939556 {'footway': 'sidewalk', 'highway': 'footway', 'surface': 'asphalt'}
   0.01 km "0 - 1 km" https://www.openstreetmap.org/way/1309939559 {'crossing': 'unmarked', 'crossing:island': 'no', 'crossing:markings': 'no', 'footway': 'crossing', 'highway': 'footway', 'surface': 'asphalt', 'tactile_paving': 'no'}
   0.01 km "0 - 1 km" https://www.openstreetmap.org/way/1309939560 {'crossing': 'unmarked', 'crossing:island': 'no', 'crossing:markings': 'no', 'footway': 'crossing', 'highway': 'footway', 'surface': 'asphalt', 'tactile_paving': 'no'}
   0.01 km "0 - 1 km" https://www.openstreetmap.org/way/1309939561 {'footway': 'sidewalk', 'highway': 'footway', 'surface': 'asphalt'}
   0.01 km "0 - 1 km" https://www.openstreetmap.org/way/1309939562 {'footway': 'sidewalk', 'highway': 'footway', 'surface': 'paving_stones'}
   0.07 km "0 - 1 km" https://www.openstreetmap.org/way/1309939563 {'footway': 'sidewalk', 'highway': 'footway', 'surface': 'paving_stones'}
   0.01 km "0 - 1 km" https://www.openstreetmap.org/way/1309939568 {'highway': 'footway', 'surface': 'paving_stones'}

Thank you

tombay commented 4 weeks ago

according to https://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Access_restrictions#Romania highway="footway" should be no access for car. They get dropped (implicitly) because there is no entry for footway in the speeds Sequence.