Google Directions API Duration In Traffic -


i noticed when using google directions api web service when request contains more 1 leg response not include duration in traffic information. 1 leg requests duration in traffic present in response. why this?

 https://maps.googleapis.com/maps/api/directions/json?origin=50.7963874022473,-1.12215042114258&destination=50.8525337185711,-1.17932204157114&waypoints=50.7921245679458,-1.13072438976753&mode=driving&departure_time=1452940200&traffic_model=pessimistic&units=imperial&key=mykey 

in above request no duration in traffic in below request

https://maps.googleapis.com/maps/api/directions/json?origin=50.7963874022473,-1.12215042114258&destination=50.8525337185711,-1.17932204157114&mode=driving&departure_time=1452940200&traffic_model=pessimistic&units=imperial&key=myapi 

the duration in traffic present.

you can prefix waypoints via: , return response 1 leg , include duration in traffic field.(so long correc parameters included).

 https://developers.google.com/maps/documentation/directions/intro?hl=en 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -