4 ms·
Does typical navigation software assign the same cost to a left turn as a right turn?
by amelius 10y ago
Does typical navigation software assign the same cost to a left turn as a right turn?
- snrplfth 10y agoIf your navigation software doesn't permit weighting different turns, it's not really worth using for a business/organization of any substantial size. Usually there's also cost assignment/weighting for things like traffic time, stoplights-vs-all-way-stops, effective speed limits, time-vs-distance balancing, and all the zonal assignments that come up when breaking up a bunch of stops into different vehicles' routes for the day.
- pc86 10y agoThey're asking about typical nav software, not large business logistics software.
- snrplfth 10y agoOkay, I assumed the implication was software "typical" for commercial/delivery/collection vehicle routing. Even a business with a dozen vehicles would generally have this sort of software. Google Maps does not, the last time I checked, preferentially weight left turns beyond expected stoplight delay time. However, Waze does, apparently. (But this is just a comparative observation, the algorithms are not public.)
- toomanybeersies 10y agoI believe that Telogis does, from what one of the engineers was saying to me. Most software will weight on rules like how long it will take to turn left rather than right at an intersection, and other average case rules at decision points.
- lorenzhs 10y agoSince you need turn restrictions if you want to compute routes that users can actually follow, adding different costs for different kinds of turns (left, right, U-turn) is easy. See my other comment in this thread on the challenges associated with incorporating turn costs and restrictions in gerenal: https://news.ycombinator.com/item?id=13616676 https://news.ycombinator.com/item?id=13616676
- euyyn 10y ago> Incorporating turn costs into route planning is actually not that easy! [I]t doesn't play well with many speed-up techniques. + > Since you need turn restrictions if you want to compute routes that users can actually follow, adding different costs for different kinds of turns (left, right, U-turn) is easy. Does this mean all those speed-up techniques don't produce routes that are actually allowed? What's the point of developing them?
- lorenzhs 10y agoNah, it's just that it took work to integrate turn restrictions, and that that results in a bit of a slowdown. It's easier to do research on a more limited version of the problem (shortest path in a road graph with a suitably chosen edge weight function) and then generalise than start out with the most general formulation. The results are wild: these techniques are millions of times faster than Dijkstra's algorithms and provably produce the exact same result. It's what makes Google Maps possible.