Skip to main content

Asynchronous Waze client for calculating routes and travel times.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywaze-1.1.1.tar.gz (151.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywaze-1.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pywaze-1.1.1.tar.gz.

File metadata

  • Download URL: pywaze-1.1.1.tar.gz
  • Upload date:
  • Size: 151.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"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}

File hashes

Hashes for pywaze-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4ee53d06a1e30a3330c4b6e0281bb144727cf155232148ab4663e77f4069296a
MD5 a7319e1f2ec0cbef1b9edfa7e06cd7ab
BLAKE2b-256 87829aaed2ce6003908348ef67ad6a1e93dc98b7fe08b5e5b96598b15a519ebf

See more details on using hashes here.

File details

Details for the file pywaze-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pywaze-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"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}

File hashes

Hashes for pywaze-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 408620b08bfc046fcb49a3c0abcc00af0895c78edfad074f797eb908403e3442
MD5 a23b9e0d5283ba6e9e271bef15080046
BLAKE2b-256 30288082a78b611dbd59c7d3763123f28e871213edd9a771fffb03e66692149a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page