Skip to content
/ waze-rs Public

Calculate actual route time and distance with Waze API - based on Python WazeRouteCalculator

License

Notifications You must be signed in to change notification settings

baget/waze-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Calculate actual route time and distance with Waze API - based on Python WazeRouteCalculator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages