Routing optimization module module for Itinero.
A module for solving optimization routing problems with Itinero as a routing solution.
Current we have the following problems supported:
Install the following package via Nuget:
PM> Install-Package Itinero.Optimization -IncludePrerelease
Then immediately some extension methods are available on top the default Itinero Router class.
router.Optimize (string profileName, Coordinate[] locations)
This calculates a TSP by default starting and ending at the location at index 0
. Specifiy first
and last
to change this behaviour, when leaving last=null
the solver decides the best last location. When setting turnPenalty
u-turns are being avoided when they introduce a cost bigger than the given penalty.