Steve Benett
Steve Benett

Reputation: 12933

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

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?

Upvotes: 6

Views: 6743

Answers (2)

chi fai lai
chi fai lai

Reputation: 7

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

Upvotes: -1

MaciejGórski
MaciejGórski

Reputation: 22232

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

Upvotes: 6

Related Questions