Replies: 2 comments 2 replies
-
There is a dedicated lua script useful for debugging that will help understand how a profile "sees" a given OSM way. For example one of the two you shared seems now perfectly fine: lua debug_way.lua car 1126408079
{
highway = 'primary',
maxspeed = '40',
name = 'Ratapihankatu',
['name:fi'] = 'Ratapihankatu',
oneway = 'yes',
surface = 'asphalt'
}
=>
{
backward_classes = {},
backward_mode = 0,
backward_rate = 8.8888888888889,
backward_speed = 32,
destinations = '',
duration = 0,
forward_classes = {},
forward_mode = 1,
forward_rate = 8.8888888888889,
forward_speed = 32,
is_left_hand_driving = false,
is_startpoint = true,
name = 'Ratapihankatu',
road_classification = {
may_be_ignored = false,
road_priority_class = 4
}
} Note that this way has been changed right after you posted your message: the That is really not a bug, rather a data issue. Can you re-build using a new extract including the latest changes and confirm that those ways are now included? |
Beta Was this translation helpful? Give feedback.
-
Thank you, that explains it all. The lua script seems useful. Seems like the proposed-tag was misused on that way, causing map renderers to show it as a proper functioning way but OSRM profiles considering it as a planned but not ready for use road. The proposed tag should always be used combined with "highway: proposed" (or amenity/railway/another main tag: proposed). Wouldn't it be better for the profile to ignore the proposed-tag and instead avoid highways with tag "highway: proposed" ? I believe that could be more consistent with the renderers and avoid cases where proposed-tag is forgotten on a way when the road is marked as finished. |
Beta Was this translation helpful? Give feedback.
-
Issue
I'm seeing a routing issue in Tampere, Finland where a segment of road just seems to be missing from the database of OSRM.
You can see and test the issue easily here:
https://map.project-osrm.org/?z=17¢er=61.498896%2C23.777643&loc=61.500055%2C23.774870&loc=61.500739%2C23.774629&hl=en&alt=0&srv=0
There is a segment of road missing straight between the starting and ending point, so the router finds a detour far away.
I don't see any trouble why it shouldn't be considered for routing in the OSM data.
https://www.openstreetmap.org/way/1126408079
https://www.openstreetmap.org/way/1126408080
Looking at the debug tiles the segment just seems to be missing completely:
https://map.project-osrm.org/debug/#16.71/61.49999/23.77709
I don't think this is related to the demo site - the same issue occurs with my self-build OSRM with a custom profile and up-to-date map data.
Steps to reproduce
https://map.project-osrm.org/?z=17¢er=61.498896%2C23.777643&loc=61.500055%2C23.774870&loc=61.500739%2C23.774629&hl=en&alt=0&srv=0
Beta Was this translation helpful? Give feedback.
All reactions