Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extracting trip ETA from Google Maps API possible?

Tags:

google-maps

Is it possible to get the trip ETA (in number of minutes) and traffic data from the google maps API between two address points? Does anyone know if the ETA value reflects traffic conditions?

like image 219
NoCarrier Avatar asked Aug 25 '09 22:08

NoCarrier


People also ask

How do I get travel time on Google Maps?

From the configuration menu select: Devices & Services. In the bottom right, click on the Add Integration button. From the list, search and select “Google Maps Travel Time”. Follow the instruction on screen to complete the set up.

How do I get data from Google Maps API?

Go to APIs & Services → Dashboard → Enable APIs & Services at the top and Choose Maps Javascript API from the API Library. This will open up the Map JavaScript API page, and Enable it.

What can you do with Google Maps API?

The Google Maps Platform is a set of APIs and SDKs that allows developers to embed Google Maps into mobile apps and web pages, or to retrieve data from Google Maps.


1 Answers

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.

like image 160
David Hull Avatar answered Oct 10 '22 06:10

David Hull