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

Wrong routing after adding mutually exclusive car and truck restrictions

Open ftrebien opened this issue 4 years ago • 5 comments

After this change, OSRM stopped computing the correct route and started computing this incorrect route instead:

The new route leads drivers through a path that is only allowed for trucks.

Also, before this change from a single only_straight_on restriction to two no_u_turn restrictions here, OSRM was refusing to route through this interchange when crossing towards Brazil.

ftrebien avatar Jan 05 '21 20:01 ftrebien

Sorry if I'm misunderstanding - the change applieshgv=no to the inner loop road, whilst the outer loop road has hgv=designated. Wouldn't this be the expected behaviour?

mjjbell avatar Jan 07 '21 17:01 mjjbell

Yes, I was misunderstanding 😄 It looks like the roads have been edited a few times recently, so I'm not sure which version of the data is currently deployed.

Nevertheless, the reason cars are not routed via the inner loop is due to a height restriction of 2.4 metres, which is lower than that being used by the fossgis routing profile.

You can see in the debug tiles that the road is not accessible to cars with this profile.

mjjbell avatar Jan 07 '21 17:01 mjjbell

Oh, I didn't notice that. That height limit is correct according to local signage, so I guess it can't be helped without causing problems elsewhere.

ftrebien avatar Jan 08 '21 12:01 ftrebien

@mjjbell 5.24.0 Where is the branch of this change FIXED: Reduce copying in API parameter constructors ? The link in the changelog.md seems to be wrong !

GitBenjamin avatar Sep 14 '22 06:09 GitBenjamin

@mjjbell 5.24.0 Where is the branch of this change FIXED: Reduce copying in API parameter constructors ? The link in the changelog.md seems to be wrong !

Off-by-one error: #5926

mjjbell avatar Sep 14 '22 08:09 mjjbell

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 08 '24 20:07 github-actions[bot]