API Distancematrix - Get travel time information

Asked

Viewed 81 times

0

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

inserir a descrição da imagem aqui

When I call the API with my parameters (LINK HERE), the duration is always wrong!

Thanks in advance!

1 answer

0

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

"Duration" : { "text" means "31 minutes", "value" : 1858 }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.