The Google Maps Roads API identifies the roads a vehicle was traveling along and provides additional metadata about those roads, such as speed limits.
Overview
Watch this video for some examples of the kinds of apps that will find the Google Maps Roads API useful.
The Google Maps Roads API allows you to map GPS coordinates to the geometry of the road, and to determine the speed limit along those road segments. The API is available via a simple HTTPS interface, and exposes two services:
- Snap to roads This service returns the best-fit road geometry for a given set of GPS coordinates. This service takes up to 100 GPS points collected along a route, and returns a similar set of data with the points snapped to the most likely roads the vehicle was traveling along. Optionally, you can request that the points be interpolated, resulting in a path that smoothly follows the geometry of the road.
- Speed limits This service returns the posted speed limit for a road segment. The Speed Limit service is only available to Google Maps APIs Premium Plan customers. If you are an existing customer, you can contact your account manager or file a ticket in the Premium Plan support portal to enable the Google Maps Roads API.
Client Library
The Google Maps Roads API is available as part of the Java Client for Google Maps Services and Python Client for Google Maps Services. Client libraries make developing with the Google Maps Roads API easier by providing simple, native implementations of common tasks, such as authentication, request throttling and automatic retry.
These community-supported client libraries are open-sourced under the Apache 2.0 License and are available for download, or contributions, on GitHub. The libraries are not covered by the standard Google deprecation policy, or support agreement.
