Matt Westlake
Matt Westlake

Reputation: 3651

How to get typical traffic from google maps api

I found the trafficLayer information at https://developers.google.com/maps/documentation/javascript/trafficlayer but I'm looking to include typical traffic data. Much how google maps has their Typical Traffic popup at https://www.google.com/maps/@39.9629667,-82.9783564,12z/data=!5m1!1e1 where you can set the Day of the Week & Time.

How do I include the popup on my map & set it to a specific day/time?

EDIT: If I can get the actual speed of the road, that would be a great bonus!

Upvotes: 0

Views: 3582

Answers (1)

Omar
Omar

Reputation: 180

Hello @Matt,

Thanks for inquiring about this feature and for helping to keep this conversation alive. At the moment, the google.maps.TrafficLayer class does not support Typical data since the class is defaulted to autoRefresh: true.

You could help the community by showing support in the Google Public Issue Tracker's existing feature request. Feel free to show us your support for new features and don't forget to follow our blog for feature roll-outs, and bug fixes as new versions of the Google Maps JS API roll-out.

Upvotes: 2

Related Questions