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

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.2
File Size Uploaded Provenance
python_google_maps_routing_api-0.0.2.tar.gz 17.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 30.9 kB

Release files / python_google_maps_routing_api-0.0.2.tar.gz

Download URL python_google_maps_routing_api-0.0.2.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f7c261517a72c758a81322cde7575b52c2d31b43690c915e71f65670222fa214
BLAKE2b-256 checksum
How to use checksums
967211e24c883ef8f83fe64b9b805a55cd4e1ddd11e181444e8e77fe3c36fe60
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.2-py3-none-any.whl

Download URL python_google_maps_routing_api-0.0.2-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f74a6cedd8040e68132d9981e2f5a307856d99e410276c91ac5a9cd15492949
BLAKE2b-256 checksum
How to use checksums
422c3e9113b0d3bf2963b7bc5b33a704e53a79437503ea89073d33e506728da7
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.2

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