Route time or ETA

Hi all,

In which class is route time or route ETA calculated?

image

The total duration of a path is the sum of the duration of each edge. The duration of each edge is calculated here:

Your main ability to influence the value returned will come from changing the speed of an edge. For example, see here if you’re using the custom model: https://github.com/graphhopper/graphhopper/blob/master/docs/core/custom-models.md#custom-models-by-the-example-of-customizing-speed

If you’re not using the custom model, then the speed of the edges is set in the flag encoder.

Thank you @Sam_Crawford

Powered by Discourse