Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 410 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 410 Bytes

osrm-rs

Rust bindings for Open Source Routing Machine (OSRM).

Example

let osrm = OSRM::new("./data/1.osrm")?;
let result = osrm
    .table(
        &[Point {
            latitude: 51.5062628,
            longitude: -0.0996648,
        }],
        &[Point {
            latitude: 51.5062628,
            longitude: -0.124899,
        }],
    )?;
assert_eq!(result.get_duration(0, 0)?, 0.0);