GraphHopper.com | Forum | GitHub | Maps | Blog

Are instruction intervals homogeneous?


#1

I would like to compute an arrival time for every point of a routing API response. The problem is that the distance and time properties of an instruction are assigned to several points of the interval. Hence, I would like to know if the points that belong to an interval are homogeneous in the sense that the chosen vehicle will have constant speed along them? In that case I could interpolate linearly to get ETAs.

I am referring to

  • paths[0].instructions[0].time
  • paths[0].instructions[0].interval
  • paths[0].points.

#2

You can use the path details “distance” and “time”: