Skip to main content

python-google-maps-routing-api

A python client library for Google Maps Routes API.

See https://developers.google.com/maps/documentation/routes

Only API keys are supported, see https://developers.google.com/maps/documentation/routes/client-library

Usage

import asyncio

import aiohttp

from google_maps_routing_api import GoogleMapsRoutingApi, TravelMode


async def main() -> None:
    async with aiohttp.ClientSession() as session:
        api = GoogleMapsRoutingApi(session=session, api_key="...", referrer="https://example.com/")
        response = await api.async_compute_routes(
            origin="Mountain View, CA",
            destination="San Francisco, CA",
            travel_mode=TravelMode.DRIVE,
        )
        for route in response.routes:
            print(route.duration, route.distance_meters, route.localized_values.duration.text)


asyncio.run(main())

Development environment

python3 -m venv .venv
source .venv/bin/activate
# for Windows CMD:
# .venv\Scripts\activate.bat
# for Windows PowerShell:
# .venv\Scripts\Activate.ps1

# Install dependencies
python -m pip install --upgrade pip
python -m pip install -e .

# Run pre-commit
python -m pip install pre-commit
pre-commit install
pre-commit run --all-files

# Run tests
python -m pip install -e ".[test]"
pytest

# Build package
python -m pip install build
python -m build

Metadata

Release files for python-google-maps-routing-api 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-google-maps-routing-api 0.0.1
File Size Uploaded Provenance
python_google_maps_routing_api-0.0.1.tar.gz 17.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for python-google-maps-routing-api 0.0.1
File Interpreter ABI Platform
python_google_maps_routing_api-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 30.2 kB

Release files / python_google_maps_routing_api-0.0.1.tar.gz

Download URL python_google_maps_routing_api-0.0.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
767dbc4c3cb0d17761cd9ffad10f4df4229fe7c56a254ab56792fd2b1ffa7a39
BLAKE2b-256 checksum
How to use checksums
6f9e615250df8290428fbb5d555ddc8c1a1309799cd9357ef424f8802824a3fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / python_google_maps_routing_api-0.0.1-py3-none-any.whl

Download URL python_google_maps_routing_api-0.0.1-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f1b9c1dc3956ca61130ba5a4f8457a1e3bf3495d51e73dd3cfbf6d6f55d05f8
BLAKE2b-256 checksum
How to use checksums
dc3267366d362bba246e89128e0ca07c331d8d1aab0a6edfa5f1961b00459989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for python-google-maps-routing-api 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for python_google_maps_routing_api-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page