Assigned
Status Update
Comments
ra...@google.com <ra...@google.com> #2
Thanks for your suggestion! We are currently evaluating this request, but do not have any plans to implement it at the moment. Please star to add your vote and receive further updates, and feel free to add any comments to discuss your use case.
et...@gmail.com <et...@gmail.com> #3
I've transitioned from this team. Thanks!
et...@gmail.com <et...@gmail.com> #4
Hello,
Can you tell me if you have a solution or if the problem cannot be solved?
Kind regards,
Etienne
Can you tell me if you have a solution or if the problem cannot be solved?
Kind regards,
Etienne
mi...@google.com <mi...@google.com> #5
Your assessment is correct: the posed problem cannot be (easily) solved.
Each individual DirectionsStep
duration
.
If one is ready to accept the assumption that speed is roughly constant within the step, one can divide the step in distance-based steps by using the distances between the points in the step's path
distance
), and use those distances to assign a proportional duration to each "segments" between adjacent points in the path
, based on the the step's total duration
.
Description
I use DirectionsAPI.
When I create an itinerary between two coordinates, I get one route (because I provideRouteAlternatives is false).
In one route, I have only one leg because I never add step.
In the steps, I get the path.
There are the coordinates of the points which make up the path. But there are not the duration between two adjacent points.
Can I get them ?
Or, have I to create new iteneraries between each pair of adjacent points ?
Have a nice day,
Etienne