New Google Maps API
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


DeepMind's AlphaZero Triumphs At Chess
07/12/2017

DeepMind's latest program, AlphaZero, has used reinforcement learning from playing against itself to master the game of chess. Given the important role that chess has occupied in computer science, thi [ ... ]



Amazon Glacier Select Analyzes Archived Data
01/12/2017

Amazon has released a tool that can query archived data held in Amazon Glacier, its low cost storage for data archiving. Glacier Select improves the attractiveness of Glacier because it makes the data [ ... ]


More News

 

 
 

 

blog comments powered by Disqus

Last Updated ( Thursday, 12 November 2015 )
 
 

   
Banner
Banner
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.