Closed deanmarchiori closed 2 years ago
G'day Dean, thanks for the kind words! And yep, you've found a bug. The whole roundabout thing has been simply overlooked until now. Watch here for implementation of a fix, which shouldn't take too long.
That was a really good catch @deanmarchiori, thanks so much! You should now see something like this:
G'Day Mark,
Wow what a quick fix! Thanks heaps for that.
Dean.
Thanks for finding that out - it was a pretty important bug to uncover, and something that i just hadn't explicitly thought about until you raised it.
Hi, Excellent package, thanks so much. Just filing an issue for some unexpected behaviour, although quite possible its user error.
Issue: When calling
dodgr::dodgr_paths
between two nodes returned fromdodgr_streetnet_sc
, such that a roundabout junction is transited, the path finds the shortest path, but seems to go 'the wrong way' around the roundabout. i.e. it doesn't seem to obey conventional turn restrictions.In the example below, the red points highlight the vertices returned in the path. I have annotated to show start and end nodes.
On inspection of the data, I cannot see how turn restrictions are being parsed from the OSM data.
(Apologies of this is a limitation I am unaware of, or if I have done something silly!)
Attempted Fix:
wt_profile = 'motorcar', left_side = TRUE, turn_penalty = TRUE
argumentsExample:
Visualising path:
Session Info: