Extracting trip ETA from Google Maps API possible?
It's possible to get travel time between two points using Google Maps Directions API. Google provides a nice documentation for this.
https://developers.google.com/maps/documentation/directions/intro
Although the free version doesn't consider the traffic conditions. In order to get the real time traffic conditions using APIs you need to purchase 'Google Maps for Work' licence.
https://www.google.com/work/mapsearth/
Google's Distance Matrix API gives the json/xml response as per Origin and Destination address/location/latitude,longitude.
Here's an example In order to change parameters, refer this Also, you need to create an Google developer account for APIKEY.
https://maps.googleapis.com/maps/api/distancematrix/json?origins=13.026790,77.635752&destinations=13.025949,77.639689&key=GOOGLE_API_KEY
Google has a Distance Matrix API that returns the distance and travel times between two (or more) points, which can be specified as either lat+lng or addresses.
I do not believe that it takes traffic data into account.
The API you are after is getDuration of the GDirections object. This will give you the number of seconds for all routes in a GDirections request. I am not sure if Google applies traffic data (if it is available). Someone else might have the answer to that?
You can get a traffic data overflow on your Google map using a GTrafficOverlay, but I am not sure about getting the underlying data. I would start looking in the Google Maps Data API.