I wrote a website that uses the Google Maps v3 DirectionsService API to find the distance between two user-defined points.
I found that it produces different results at different times of the day or on different days of the week.
For example, I traveled between Coatbridge and Grangemouth twice the first time, when he told me that the distance is 41.8 km, the second time he said that it is 39.9 km.
I suspect this may affect current traffic conditions, perhaps. I did not find any hints in the google documentation.
Anyone else run into this issue? More importantly, does anyone have a solution?
Edit:
It seems that the influence of the current traffic conditions is a well-known "function" of Google Maps DirectionsService (thanks for your input @vitors), but so far no one has suggested a method to "disable" this function.
How can I prevent the impact of the results on current traffic conditions? Can someone help please?
Edit: It seems that Google has finally added a durationInTraffic parameter (thanks for the @Ron info). Shame on me for almost 2 years is too late for me! Hope this is helpful to someone else.
source share