When I use the Google Maps directions API (server-side) the distance and duration are almost always different then the embedded (iframe) maps tells me.
I use the embedded version to show to the customer, and I use the API version to calculate the taxi price. It is therefore necessary that I get the same distance and duration from both services.
I am using the following origin address: Straße des 17. Juni, Berlin, Germany
I am using the following destination address: Amsterdam Airport Schiphol, Netherlands
With the above route, this is the output:
Embedded (iframe): 6 hours 31 mins - 661km
API (server-side): 6 hours 3 mins - 662km
Directions API: https://developers.google.com/maps/documentation/directions/
Directions Embed: https://developers.google.com/maps/documentation/embed/start
Hope somebody can help me out.