itinero / routing

The routing core of itinero.
Apache License 2.0
222 stars 70 forks source link

ManyToMany with Turn Penalty #373

Open YangYang1208 opened 7 months ago

YangYang1208 commented 7 months ago

Is there a way to do ManyToMany routing that includes turn penalties? I've explored all matrix algorithms, yet not a single one seems to accept turn penalties as an input.

I've also looked into the sample code and issues #307 and #313. However, when I try to run the following sample code on my own routerDb (which is contracted), I get the "Value cannot be null. Parameter name: nodeBasedGraph" error.

route = router.Calculate(car, locations, turnPenalty: 120, preferredDirections: null);

Any pointers would be very appreciated.