0

With GoogleMap.setTrafficEnabled(true) I can get the traffic information for the whole map only.

https://developers.google.com/android/reference/com/google/android/gms/maps/GoogleMap.html#setTrafficEnabled(boolean)

I also know that it is impossible to get the information for the specific route via the official API from google map.

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

However, if I also wanna to do so, are there any others way to get the traffic information for specific route? Any stupid methods are also accepted.

For me, I just have a solution that using polyline function but I don't know how to extract information from google map.

Thanks all.

Community
  • 1
  • 1
  • Finally, I find the solution. Thanks. – chi fai lai Jan 31 '17 at 04:52
  • 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 – chi fai lai Jan 31 '17 at 04:53

0 Answers0