1

I have been following android get duration from maps.google.com directions and I seem to be doing okay, but I have a question: does the duration returned in the JSON from google maps adjust for real time traffic?

Community
  • 1
  • 1
Gdalya
  • 385
  • 3
  • 17
  • Google API team? Anyone there? Chris Broadfoot? – Duncan_m Mar 13 '12 at 22:39
  • I have a related question on [Android Stack Exchange](http://android.stackexchange.com/questions/20493/why-does-google-maps-display-routes-waypoints-differently-on-phone-than-on-pc) – Gdalya Mar 14 '12 at 23:18

2 Answers2

2

From the definitions on the google developers documentation for directions api :

  • duration indicates the total duration of this leg
  • duration_in_traffic indicates the total duration of this leg, taking into account current traffic conditions

I would take this to mean that no, duration doesn't not adjust for real time traffic.

nbsp
  • 340
  • 3
  • 7
1

It's possible to determine the answer to the question empirically by getting the duration at different times of day. I think you'll find it is not real-time based.

The documentation does not make mention of real-time traffic. While that's not conclusive, accounting for real-time traffic conditions would be rather a coup and highly likely to be included.

Andrew Leach
  • 12,945
  • 1
  • 40
  • 47