https://github.com/eifinger/pywaze
Asynchronous Waze client for calculating routes and travel times.
https://github.com/eifinger/pywaze
hacktoberfest python traffic waze
Last synced: 29 days ago
JSON representation
Asynchronous Waze client for calculating routes and travel times.
- Host: GitHub
- URL: https://github.com/eifinger/pywaze
- Owner: eifinger
- License: mit
- Created: 2023-08-06T19:27:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T09:59:00.000Z (5 months ago)
- Last Synced: 2025-03-22T11:51:11.232Z (about 1 month ago)
- Topics: hacktoberfest, python, traffic, waze
- Language: Python
- Homepage:
- Size: 208 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pywaze
Asynchronous Waze client for calculating routes and travel times.
Based on [WazeRouteCalculator](https://github.com/kovacsbalu/WazeRouteCalculator)
## Installation
```console
pip install pywaze
```## Usage
```python
#!/usr/bin/env python3import asyncio
from pywaze import route_calculatorasync 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)
route_time, _ = list(results.values())[0]
return route_timestart = "50.00332659227126,8.262322651915843"
end = "50.08414976707619,8.247836017342934"travel_time = asyncio.run(get_time(start, end))
print(travel_time)
```---
[
](https://www.buymeacoffee.com/eifinger)
[](https://paypal.me/kevinstillhammer)