How to enable traffic information along a specific route in Google Maps V2?
Asked Answered
J

2

6

Google Navigation shows the traffic layer only for a given route. With GoogleMap.setTrafficEnabled(true) I'll get the traffic information for the whole map.

I know how to draw polylines for a route from Google Directions, but how can I turn on the traffic layer only for that route?

Joyejoyful answered 30/5, 2013 at 18:19 Comment(2)
I am also face same problem..can you give updated answer for your question..see my question #30313661Pelagia
@ranjith I'm sorry to say, that I never solved this problem. It seems Google keeps some functionality for their own APIs. Also I haven't programming Android for quiet some time.Joyejoyful
T
6

Not possible as of API v2 version 3.1.36. You may want to post a feature request on gmaps-api-issues.

Taneka answered 30/5, 2013 at 18:52 Comment(2)
No offense but where did you get this info?Joyejoyful
@SteveBenett I seem to know the API fairly well. There is no function which lets you do that. GoogleMap.setTrafficEnabled is the only traffic-related API. The lecture doesn't take much time: developers.google.com/maps/documentation/androidFootway
E
-1

The difference between these two values (duration and a duration in traffic) indicates how delayed your customer is going to be on their way to or from their location.

Reference: Access Google's Traffic Data through a Web Service

Discussion: http://searchengineland.com/pull-google-maps-traffic-data-into-adwords-with-this-script-library-248934

Eudo answered 31/1, 2017 at 4:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.