Is it possible to get an ETA trip (in minutes) and traffic data from google maps API between two address points? Does anyone know if the ETA value reflects traffic conditions?
The API you use is the getDuration of the GDirections object. This will give you the number of seconds for all routes in the GDirections request. I'm not sure if Google uses traffic data (if available). Can anyone answer this?
You can get traffic data overflow on a Google map using GTrafficOverlay , but I'm not sure about getting the basic data. I would start looking in the Google Maps data API .
Google has a distance API that returns the distance and travel time between two (or more) points, which can be specified as either lat + lng or addresses.
I do not think that it takes into account traffic data.
You can get the travel time between two points using the Google Maps Directions API. For this, Google provides good documentation.
https://developers.google.com/maps/documentation/directions/intro
Although the free version does not take into account traffic conditions. To get real-time traffic conditions using the API, you need to purchase a Google Maps for Work license.
https://www.google.com/work/mapsearth/