Google Maps traffic forecasting API V3

Is there a way to implement the Google traffic prediction described in the link with api maps? displays traffic forecast

+1
source share
2 answers

Not. Here's the API documentation: https://developers.google.com/maps/documentation/javascript/layers#TrafficLayer

Traffic forecasting is not part of the API. It is included in Google Maps (their own and not other maps through the API), so undocumented calls can be used to get data. But they do not like the people who do this, and this can have unintended consequences.

+1
source

Question and accepted answer - since 2012.

From October 2015, you can get routes and predict travel times for future trips.

You can provide departure_time a route request. Please note that this function only works when connected using the API key.

It is based on historical data, and when traveling in the near future, it uses data about real traffic.

https://developers.google.com/maps/documentation/directions/intro#RequestParameters

+3
source

Source: https://habr.com/ru/post/1203852/


All Articles