2 releases
0.1.1 | Feb 1, 2025 |
---|---|
0.1.0 | Jan 31, 2025 |
#22 in #calculate
189 downloads per month
33KB
545 lines
waze-rs
Calculate actual route time and distance with Waze API - based on Python WazeRouteCalculator
Uses serde and reqwest to make requests to Waze API.
Build
cargo build
Usage Example
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() ?;
License
GPL-3.0 (Derived work of WazeRouteCalculator)
Dependencies
~12–25MB
~344K SLoC