I have a website that uses google map javascript direction service to compute the route and duration between 2 locations and embed a map to display the route for the user, but when comparing 2 duration between 2 APIs that gives me the wrong time.
here is my javascript code
directionsService.route({
origin: origin,
destination: destination,
travelMode: "Driving"
})
Embed map api url
https://www.google.com/maps/embed/v1/directions?key=MY_KEY&origin=origin&destination=destination&mode=driving
Did google map embed map give me the duration containing the traffic time also?
I hope this helps you to understand my issue. Tell me if I am wrong on something.
Thanks.