New Google Maps API
Written by Kay Ewbank   
Thursday, 12 November 2015

Google is adding predictive travel times to the Google Maps APIs enabling users to forecast how long a journey will take at some future date and time allowing for likely traffic conditions.

 googlemaplogo

The Maps APIs are a collection of APIs that let you overlay your own data on a customized Google Map. There are APIs for Web, Android and iOS developers, and the new predictive travel times option will give developers a way to show how long a particular journey between two points will be likely to take at a particular date and time.

Writing about the new facility on the Google Geo Developers Blog, Google's Tobias Espig said:

"Planning journeys ahead of time has always been difficult, since traffic conditions vary greatly over time. Developers have used live traffic data from the Google Maps APIs for years to help drivers with this problem, but up to now, this has been available only for journeys starting very close to now, and limited to Google Maps for Work customers only".

Traffic predictions have now been extended in the Google Maps APIs indefinitely into the future - a feature Google is calling predictive travel times. You'll be able to use this in your apps to let users plan journeys hours, days or even weeks in advance, using Google’s model of what the traffic conditions will be like on that day.

 

 

 

Google is also making all traffic features in its Directions API and Distance Matrix API available under the Standard Plan where you can have up to 2500 requests a day for free. The waypoint limit in Directions API is also being increased from 8 to 23 waypoints.

You can use the time prediction by adding a departure_time parameter to queries you create in the Directions API or Distance Matrix API and the results will contain the travel time estimate given the predicted traffic conditions at that time.

The API will, under some traffic circumstances, return a route that might be faster given the expected traffic conditions, so you can recommend the fastest route to your users. For example, the image below shows the fastest route from San Francisco International Airport to the Google campus in Mountain View late at night when there’s no traffic (blue), and during peak hour when an accident on Highway 101 has slowed traffic to a crawl (red)

googlemap2

.

You don't have to pass on Google's view of potential traffic conditions unmodified; there's an optional traffic_model parameter that you can use to set an optimistic, pessimistic or best_guess estimate of the travel time, depending on the needs of your application and your analysis of whether under- or over-estimating times would cause more complaints. 

 

More Information

Google Geo Developers Blog

Features demonstration video

Directions API Documentation

Related Articles

 

Google Places Now On Android

Getting Started With Google Maps

Google Maps API Libraries For Java And Python

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin

 

Banner


Android Studio Iguana With Crash Reports
05/03/2024

Google has announced that the latest version of Android Studio, Iguana, is now stable. It has version control system support in App Quality Insights and new built-in support for creating baseline prof [ ... ]



Master Large Language Model Ops
20/03/2024

New technology brings with it more career opportunities. You may never have imagined becoming an LLMOps consultant,  but there's now a Coursera Specialization which provides preparation for this  [ ... ]


More News

 

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 12 November 2015 )