You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I'm currently trying to test some features from Itinero for my project, which is intended to optimize routes for delivery. My problem is that I'm getting too much float.MaxValue values after using CalculateWeight method.
I'm generating some random Coordinates on a map using the following code:
With some generated points I'm trying to use .CalculateWeight method, but nearly always it returns matrix containing from 20 to 80 percent of float.MaxValue values. I tried to .CalculateWeight with default weight handler like in the following:
I think this was due to the use of the incorrect Algorithm being used it should be fixed in #302 if not let me know and provide a repo and I will triple check, I think there is 1 more place a change needs to be made but @xivk has not reviewed the PR yet
Hello!
I'm currently trying to test some features from Itinero for my project, which is intended to optimize routes for delivery. My problem is that I'm getting too much
float.MaxValue
values after usingCalculateWeight
method.I'm generating some random
Coordinate
s on a map using the following code:As a data sample I'm using one district of a city, which is bounded as from the following link: https://www.openstreetmap.org/relation/1114902#map=14/59.9337/30.3733.
For example, I can generate 5 points from this district:
With some generated points I'm trying to use
.CalculateWeight
method, but nearly always it returns matrix containing from 20 to 80 percent offloat.MaxValue
values. I tried to.CalculateWeight
with default weight handler like in the following:And the output is the following:
Also, I tried to use
.GetAugmentedWeightHandler
like in the following:And the output is the following:
For RouterDb generation I'm using the following code:
I attached small demo project for this.
ItineroDemo.zip
How can I reduce amount of
float.MaxValue
values in output matrix? What I'm doing wrong? Please assist here.The text was updated successfully, but these errors were encountered: