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.3

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.3
File Size Uploaded Provenance
python_google_maps_routing_api-0.0.3.tar.gz 17.9 kB With provenance Details

Built distribution (wheel)

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

Total release size: 31.0 kB

Release files / python_google_maps_routing_api-0.0.3.tar.gz

Download URL python_google_maps_routing_api-0.0.3.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2dd9f7c76346df563234030cd8e3a12368fa7da7e823c273fd48abd8115f52bb
BLAKE2b-256 checksum
How to use checksums
be3af89301ee23c0a4175d1b623fde4e916bf9c2704ddc7a3c71b4532fb36222
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 25, 2026.

Transparency log

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

Download URL python_google_maps_routing_api-0.0.3-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
897bc7dd65ef2288f928be7abb2afebb3a61c05a17edf6f6c13abc176fe7b141
BLAKE2b-256 checksum
How to use checksums
90242d589cb9d9fbbe28a496cfcdd205eb0d8c44d957448798d9aaa0005ac495
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 25, 2026.

Transparency log

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

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.3.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 25, 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.

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