๐Ÿ“ฆ eifinger / pywaze

Asynchronous Waze client for calculating routes and travel times.

โ˜… 12 stars โ‘‚ 2 forks ๐Ÿ‘ 12 watching โš–๏ธ MIT License
hacktoberfestpythontrafficwaze
๐Ÿ“ฅ Clone https://github.com/eifinger/pywaze.git
HTTPS git clone https://github.com/eifinger/pywaze.git
SSH git clone git@github.com:eifinger/pywaze.git
CLI gh repo clone eifinger/pywaze
Kevin Stillhammer Kevin Stillhammer ci: update actions/cache (#52) 9159369 1 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ .vscode
๐Ÿ“ docs
๐Ÿ“ src
๐Ÿ“ tests
๐Ÿ“„ .codespell
๐Ÿ“„ .gitignore
๐Ÿ“„ .python-version
๐Ÿ“„ .ruff.toml
๐Ÿ“„ .yamllint
๐Ÿ“„ LICENSE
๐Ÿ“„ mypy.ini
๐Ÿ“„ pyproject.toml
๐Ÿ“„ README.md
๐Ÿ“„ uv.lock
๐Ÿ“„ README.md

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)