geofabrik / OpenRailRouting

routing on railway tracks using OpenStreetMap data and the GraphHopper routing engine
Apache License 2.0
168 stars 30 forks source link

turn restrictions routing vs. map-matching #6

Closed palkooo closed 6 years ago

palkooo commented 6 years ago

Hi, is it possible that the map-matching algorithm does not take into account turn restrictions by angle (or not so much) like classic routing does? Example (left - routing, right - map matching): image Coordinates: 49.40771320279669,11.04756832122803 to 49.39492941352145,11.053726673126222

Nakaner commented 6 years ago

This is partially an upstream issue.

I can confirm this for the normal car routing compared to the map matching for cars. However, if you does map matching for cars, you are interested in the most likely route, not the most likely legal route. But the turn restrictions we create for railways are physical restrictions which cannot be broken without derailing.

palkooo commented 6 years ago

Thanks for the clarification. I can live with this behaviour, no problem, I was only curious.