How to get average traffic data on google map - google-maps

I want to show average traffic layer on google map like this.
But, this map shows the real time data of traffic, instead i want to show average traffic over some period of time on google map, is it possible? or any other maps api can help?
Please star this issue issue tracker link to vote and get update for this feature.

If you check the Google Maps documentation, the only information that you can find here about traffic is the Traffic Layer. But this traffic layer add a real-time traffic information(if supported) in your maps. But on the Google Maps website, there is a typical traffic that you can use to see the information about traffic in any given day and time.
But I think this typical traffic is not yet available in Google Maps API. So what can I suggest you is to make a feature request about this information.
For more information, check this SO question if it can help you to your problem.

Related

Google Maps: Given a point, how to find all points at a given Travel Time?

I have person's location, and I want to put markers at all points where the person can reach by traveling for 10 Min in any direction.
The person can choose any travel method like Car, Public transport, Walk, or maybe all.
After some googling, I found some existing services but they have issues:
mapnificent, its travel time is totally incorrect for public transport
isoscope is not ready yet
iso4app Too expensive as compared to google mapping services, plus it's not there yet
Can someone suggest me how to do this using Google Api? Thanks in advance. ^^
BTW there is a similar question, but that one is about Road Distance, My question is about Travel Time.
There is no build-in functionality in Google Maps API for time drive polygons (isochrone maps). The feature request was filed in Google issue tracker some time ago. You can see it on:
https://issuetracker.google.com/issues/63256697
Feel free to star the feature request to add your vote.
I know that developers tried to implement a workaround that uses multiple directions requests, but these calculations typically are time consuming. You can have a look at the following example
http://sandropaganotti.com/wp-content/goodies/demos/isochrone/
It is outdated, because it was written for v2 of Maps JavaScript API, however you can try to migrate it to v3.
Other sources that might be useful for you:
https://gis.stackexchange.com/questions/31057/creating-drive-time-polygon-around-map-point
https://gis.stackexchange.com/questions/46/can-you-make-a-travel-region-polygon-with-with-google-maps-api
I hope this helps!

Google API Future Prediction of Traffic = Typical Traffic shown on Google Maps (maps.google.com)

I just wanted to ask if the future traffic information given in the Google API (Google Distance Matrix API to be exact) is the same as the traffic data used in the typical traffic overlay in the Google maps app. Aren't they both based on historical data, and thus, should be similar if not the same?
Thank you and I will appreciate your help!
Yes, so long as you don't specific traffic_model other than best_guess.
They both use historical traffic data to predict "likely" traffic conditions in the near future, based on time of day and day of week. However, your API requests may not always carry the exact same meaning as your input on Google Maps, so there may be cases where each return slightly different results. Should you find big differences, please file a bug.

Google Maps traffic vs Bing Maps traffic

I am looking into different maps providing traffic data, comparing the data and traffic information they provide (I'm located in Denmark (Odense) so not everyone has data for that region).
The two most obvious are Google Maps and Bing Maps, both who provide traffic information on their default map.The thing is, I need not only the map but numbers and the data behind the traffic. From my research, it seems that Google doesn't provide any service or API exposing this data, but Bing does.
Does anyone here know how accurate both maps are when displaying traffic information? How do they compare? How do they get there information? Has there been any research done that tries to determine which one provides better traffic information?
I know this is a broad question, but any answer pointing me to a research paper, article or anything will be appreciated.
And is there maybe an alternative that's even better then the two mentioned above, that provide traffic in Denmark?
Both platforms have reasonable traffic data in Denmark. Bing Maps does provide some API's traffic, primarily a tile layer with color coded roads based on the flow of traffic, and a REST service which provides incidents such as constructions, road closures or accidents.
If you want the raw flow numbers or car count type information, neither platform provides this.

Travel Time using Google API

I want to get travel time betweeen two locations using Google API. I have already spent a couple of hours in sorting this out but no results yet. How do I do this?
The Distance Matrix API can get you travel time pretty easily. The documentation for the web services (HTTP interface) gives an example.
You can also use the Javascript API v3 if you'd prefer that. There's another example at the bottom of the page.
If you want travel time in current traffic, you'll need a Google Maps for Business license.

Any API to query the usage of Bing Map API license

We are looking for a API to query usage of the Bing Map API license. Right now, based on reading on MSDN View Bing Map Usage, we could view the usage at Bing Map license account web site, however we would like to embed this usage into our own software with some usage tracking enhancement, so we are looking for the API to query this usage data.
Based on current internet search and MSDN document, we didn't find a way.
Or is there such usage query API for google Map API? Based on search, I didn't find that either.
If anyone knows such usage query API, please let us know. It is really appreciated.
There is no API for accessing Account usage information. This information can only be accessed through the Bing Maps account portal: http://bingmapsportal.com To be honest, there usually isn't a need to check this regularly if your web traffic is consistent. If your application is designed properly you should only generate one billable transaction per page view of the page that has your map. If you capture web metrics already, it should be fairly easy to use that information to determine the approximate usage against your Bing Maps account.