TravelTimeMeasures
in the router engine are constructed as a Haversine measure with the default velocity of 10m/s. It is likely that the Haversine measures (distances) used provide accurate enough results but the default velocity (10m/s) does not match your vehicles and thus, the calculated times are not leading to the expected results. In this case you can use the Velocities
option and provide more accurate velocities to be used for the calculation of time of arrivals. However, if you are still not satisfied with the results, you can create your own TravelTimeMeasure
that is not based on Haversine. You can read more on custom TravelTimeMeasures
here.input.json
file (see input and output for more information on working with input files).main.go
file and use the code snippet below.input.json
file using command-line flags and use jq to extract the solution state (see runners for more information on building and running programs).route_duration
in the output is very long as a result of the slow velocities we provided in the input file.