#routes #calculate #distance #api #python #waze #rust

waze-rs

Calculate actual route time and distance with Waze API

2 releases

0.1.1 Feb 1, 2025
0.1.0 Jan 31, 2025

#22 in #calculate

Download history 150/week @ 2025-01-26 93/week @ 2025-02-02 3/week @ 2025-02-09

189 downloads per month

GPL-3.0-only

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.

Crates.io Version Crates.io Downloads (latest version)

Crates.io License

GitHub Repo stars

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