Skip to main content

pywaze

Asynchronous Waze client for calculating routes and travel times.

Based on WazeRouteCalculator

Installation

uv add pywaze

Usage

#!/usr/bin/env python3

import asyncio
from pywaze import route_calculator


async def get_time(start: str, end: str) -> float:
    """Return the travel time home."""

    async with route_calculator.WazeRouteCalculator() as client:
        results = await client.calc_routes(start, end)
        first_route = results[0]
        return first_route.duration


start = "50.00332659227126,8.262322651915843"
end = "50.08414976707619,8.247836017342934"

travel_time = asyncio.run(get_time(start, end))

print(travel_time)

Address resolving base coordinates

When one or both endpoints are addresses, calc_routes() resolves them via Waze search. You can provide custom base coordinates to make sure Waze tries to resolve the address near those coordinates:

await client.calc_routes(start, end, base_coords=(48.137154, 11.576124))

If base_coords is omitted and exactly one endpoint is already coordinates, that coordinate endpoint is used automatically as base coordinates for resolving the address.


Metadata

Release files for pywaze 1.2.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 pywaze 1.2.1
File Size Uploaded
pywaze-1.2.1.tar.gz 145.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywaze 1.2.1
File Interpreter ABI Platform
pywaze-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 151.8 kB

Release files / pywaze-1.2.1.tar.gz

Download URL pywaze-1.2.1.tar.gz
Size 145.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e2e11414f6056739b9dd8eb4a5073ab5dbeeae77810cd2563c4269878090778a
BLAKE2b-256 checksum
How to use checksums
67db4c267e698dd7c76e546325b18e9e8d8dbb7b7a4d5dc02af82be5cdc533ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pywaze-1.2.1-py3-none-any.whl

Download URL pywaze-1.2.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2696cedef8da99f60d4e44949c7dd055319ba712359edee1539b3034502f2cc
BLAKE2b-256 checksum
How to use checksums
18094b8ae98a17570e4793902a8ac61b3099c72a9c132c0e5f4b99015a8a66c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

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