Page Summary
-
Community-supported client libraries for Google Maps Services are available in Java, Python, Go, and Node.js, offering convenient access to various Google Maps APIs like Directions, Geocoding, and Places.
-
These open-source libraries, licensed under Apache 2.0, provide features such as automatic rate limiting, retry on failure, and simplified authentication.
-
Client libraries are accessible on GitHub with installation instructions and sample code, enabling developers to integrate Google Maps web services into their server-side applications.
-
Usage is governed by the Google Maps Platform Terms of Service, and these libraries are not covered by standard Google deprecation policies or support agreements.
-
API keys or client IDs are required for each Google Maps web service, with specific authentication guides available for each API.
The Java Client, Python Client, Go Client, and Node.js Client for Google Maps Services are community-supported client libraries, released as open source under the Apache 2.0 License. They're available for download and contributions on GitHub, where you can also find installation instructions and sample code:
- Java Client for Google Maps Services
- Python Client for Google Maps Services
- Go Client for Google Maps Services
- Node.js Client for Google Maps Services
Why use the client libraries?
The Java Client, Python Client, Go Client, and Node.js Client for Google Maps Services let you work with Google Maps web services on your server. They wrap the functionality of the following APIs:
- Address Validation API
- Directions API (Legacy)
- Distance Matrix API (Legacy)
- Elevation API
- Geocoding API
- Places API
- Roads API
- Time Zone API
In addition to the functionality provided by these APIs, the client libraries simplify common tasks:
- Automatic rate limiting: sends requests at the expected rate limit for
each web service by default. You can provide custom queries-per-minute
(QPM) limits with
new GeoApiContext().setQueryRateLimit(qpm). - Retry on failure: automatically retries any request when the API sends a 500-level error, using exponential backoff to help handle intermittent failures.
- Straightforward authentication: lets you authenticate with an API key, or with a client ID and secret for Google Maps Platform Premium Plan customers.
- Plain old Java objects (POJOs): returns typed Java objects for each API response in the Java library, whereas the Python library returns the response structure directly from the API.
- Asynchronous or synchronous calls: supports both synchronous and asynchronous calling styles for all requests.
Terms and conditions
The client libraries for the Google Maps web services are licensed under the Apache 2.0 License.
The client libraries are wrappers for the Google Maps web services, which are governed by the Google Maps Platform Terms of Service.
API keys and client IDs
Each Google Maps web service requires an API key or client ID. For more information about when to use an API key, when to use a client ID, and how to get your API key or client ID, see the authentication guide for the API that you're using:
- Address Validation API
- Directions API (Legacy)
- Distance Matrix API (Legacy)
- Elevation API
- Geocoding API
- Places API
- Roads API
- Time Zone API