skillfed

google-maps-routing

Google Maps Routing API client library

google-maps-routing v0.11.0 77.8K downloads/30d#14,490 on PyPI5,373
Permissive license Apache-2.0 Active released

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-routing

uv

uv add google-maps-routing

poetry

poetry add google-maps-routing

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet

Tags

google maps routing api clientpython routes apidirections and routing librarygoogle cloud routingroute optimization python
google-cloudmaps-apirouting

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

google-geo-type

Provides Python bindings for Google's Common…

permissive · top 15,000 on PyPI

google-maps-addressvalidation

Python client library for Google Maps Address…

permissive · top 15,000 on PyPI

google-cloud-functions

Python client library for Google Cloud…

permissive · top 5,000 on PyPI

google-maps-routeoptimization

Python client library for Google's Route…

permissive · top 15,000 on PyPI

google-cloud-billing

Programmatic access to Google Cloud Platform…

permissive · top 15,000 on PyPI

google-cloud-workflows

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-build

Python client library for Google Cloud Build…

permissive · top 1,000 on PyPI

google-maps-places

Python client library for Google Maps Places…

permissive · top 15,000 on PyPI

google-cloud-dataflow-client

Provides a Python client library to manage…

permissive · top 1,000 on PyPI

google-cloud-parametermanager

Python client library for Google Cloud…

permissive · top 5,000 on PyPI