Expand description
A Rust client for the BRouter server.
Example usage:
use brouter_client::Brouter;
let brouter = Brouter::local().unwrap();
let points = vec![
brouter_client::Point::new(52.5200, 13.4050), // Berlin
brouter_client::Point::new(48.8566, 2.3522), // Paris
];
let route = brouter.broute(
&points,
&[],
"trekking",
None,
None,
Some("My Route"),
false, // Export waypoints
).unwrap();
Modules§
- local
- This module contains the code to download and run BRouter locally.
Structs§
Enums§
- Error
- An error that can occur when using the BRouter client
- Nogo
- A description of some area that should be avoided
- Turn
Instruction Mode - The mode for turn instructions