Developers can foresee the future with Google Maps API
(Image Credit: iStockPhoto/pidjoe)
Developers who require the use of future travel information in their apps can put away their crystal ball as Google has opened-up access to Maps' trusted predictive journey times with the debut of a new API.
Google Maps uses historical traffic data over time and days to predict where and when a build-up could occur, which may affect your journey time, and offer an alternative route where available. Many developers benefit from the use of Google Maps in their apps; with some already using live traffic data from its APIs.
Developers can decide between optimistic, pessimistic, or best guess estimates
From today, all developers can now use both live and predicted traffic information from Google Maps to plan journeys from now, in hours, days, or even weeks in advance. Traffic features available in the Directions and Distance Matrix APIs will be available under the Standard Plan which allows for 2500 requests/day free.
For more granular control over the future predictions, developers can decide between optimistic, pessimistic, or best guess estimates of the journey time by setting an optional parameter. One initial customer using the Maps API, Redfin, has decided to use the "pessimistic" traffic model when predicting how long it will take when driving between homes to ensure plenty of time. For a developer creating an app for a smart thermostat, an "optimistic" model would be preferable to ensure the house is warm before the user should be home.
Have you tried Google Maps' API for traffic predictions? Share your experience in the comments below.
- » Microsoft announces dual-screen Surface devices early to recruit Windows 10X devs
- » Apple doubles use of Swift in iOS 13 as it shifts away from Objective-C
- » App revenue is soaring with $21.9bn spent in Q3 alone, up 22.9% YoY
- » Apple is giving iOS apps which handle real cash in an HTML5 wrapper a bit longer to transition to native
- » Beijing warns Apple to ‘think about the consequences’ after Hong Kong app controversy