| Crates.io | waze-rs |
| lib.rs | waze-rs |
| version | 0.1.1 |
| created_at | 2025-01-31 15:06:36.161707+00 |
| updated_at | 2025-02-01 09:50:18.291726+00 |
| description | Calculate actual route time and distance with Waze API |
| homepage | |
| repository | https://github.com/baget/waze-rs |
| max_upload_size | |
| id | 1537591 |
| size | 114,178 |
Calculate actual route time and distance with Waze API - based on Python WazeRouteCalculator
Uses serde and reqwest to make requests to Waze API.
cargo build
Example on how to use the API (based on waze_rs_sample.rs file)
let mut wrc = WazeRouteCalculator::builder()
.set_region(Region::IL)
.set_vehicle_type(VehicleType::CAR)
.build();
wrc.set_address("New York, NY, USA", "Princeton, NJ, USA") ?;
let route = wrc.calculate_route() ?;
GPL-3.0 (Derived work of WazeRouteCalculator)