Route time or ETA

Hi all,

In which class is route time or route ETA calculated?


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:

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