API DistanceMatrix - Obtain travel time information

0

I researched a lot and ended up discovering that to find out the duration of travel between two points considering the traffic is necessary to pay. Beauty! So how do I get the duration without considering the transit?

WhenIcalltheAPIwithmyparameters( LINK HERE ), the duration is always wrong!

Thank you in advance!

    
asked by anonymous 07.08.2015 / 14:58

1 answer

0

"So how do I get the duration without considering the transit?" Your answer is in your question. In the Api return of google maps, it returns the same 31 mins shown in your image.

"duration": {   "text": "31 minutes",   "value": 1858  }

    
17.02.2016 / 17:03