Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps API using arrival time with traffic duration

The Google Maps API docs as well as all questions I have found on Stack Overflow all state that departure time must be included to return traffic duration. However, my application requires the use of arrival time and not departure time.

The docs state that one can pass either departure or arrival time, but this is not mentioned in relation to duration_in_traffic. Is it possible to pass arrival time instead of departure time and still receive the duration_in_traffic? Maps itself does this, I don't see a reason for Google's API to be any different.

like image 726
Brendan McDonnell Avatar asked Feb 18 '26 16:02

Brendan McDonnell


1 Answers

This is not currently possible, but there is a long-standing feature request to have this feature added. You can star the issue to receive updates and show Google that there is additional interest.

like image 131
Preston Avatar answered Feb 20 '26 17:02

Preston



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!