google-maps-routing
Google Maps Routing API client library
What it is and what it does
This is the official Python client for Google's Routes API, a managed service on Google Cloud Platform that computes routes, directions, and optimized paths. It wraps the underlying gRPC and REST endpoints with a Pythonic interface, handling authentication, serialization, and error handling transparently. The library depends on google-auth for credential management, google-api-core for common client patterns, and protobuf-based message types via proto-plus.
You use it when you need to integrate routing or directions logic into a Python application running on or connected to Google Cloud. Setup requires a GCP project, billing, API enablement, and valid credentials; once configured, you instantiate a client and call methods to compute routes. The library is actively maintained, supports modern Python versions (3.10+), and carries no known vulnerabilities.
Use it for:
- Build a delivery or logistics platform that computes optimal routes between multiple stops.
- Add turn-by-turn directions to a travel or mapping application.
- Integrate route planning into a backend service for ride-sharing or fleet management.
- Compute distance matrices or travel times between locations for analytics.
- Automate route optimization in a batch processing pipeline on Google Cloud.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for the Google Maps Routes API, enabling programmatic access to routing, directions, and route optimization services on Google Cloud Platform.
Yes, if you are building on Google Cloud Platform and need routing or directions functionality. The library is actively maintained, has low install friction, carries no known vulnerabilities, and is the official client for the Routes API. Prerequisite: you must have a GCP project with the Routes API enabled and billing configured; the library itself is not useful without that infrastructure.
Install
google-maps-routing on PyPI
pip
pip install google-maps-routinguv
uv add google-maps-routingpoetry
poetry add google-maps-routingInstalling google-maps-routing
Before you install
Low install friction; pure Python wheel distribution. Active maintenance with recent releases and a well-resourced upstream repository. Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install google-maps-routing
from google.maps import routing_v2
from google.auth import default
credentials, _ = default()
client = routing_v2.RoutesClient(credentials=credentials)
Requires Google Cloud Platform project with Routes API enabled, billing configured, and valid authentication credentials set up.
Verify before relying
- Specific routing capabilities (e.g., matrix routes, waypoint optimization, toll/traffic modeling) not detailed in excerpt.
- Performance characteristics and rate limits for production workloads.
- Whether the library supports all Routes API features or a subset.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — google-api-core, google-auth, grpcio, proto-plus, protobuf, google-geo-type |
| Maintenance | actively maintained — 72 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 77,822/month — #14,490 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_maps_routing-0.11.0-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-geo-typeProvides Python bindings for Google's Common…
permissive · top 15,000 on PyPI
google-maps-addressvalidationPython client library for Google Maps Address…
permissive · top 15,000 on PyPI
google-cloud-functionsPython client library for Google Cloud…
permissive · top 5,000 on PyPI
google-maps-routeoptimizationPython client library for Google's Route…
permissive · top 15,000 on PyPI
google-cloud-billingProgrammatic access to Google Cloud Platform…
permissive · top 15,000 on PyPI
google-cloud-workflowsPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-buildPython client library for Google Cloud Build…
permissive · top 1,000 on PyPI
google-maps-placesPython client library for Google Maps Places…
permissive · top 15,000 on PyPI
google-cloud-dataflow-clientProvides a Python client library to manage…
permissive · top 1,000 on PyPI
google-cloud-parametermanagerPython client library for Google Cloud…
permissive · top 5,000 on PyPI