osrm-binding 1.0.0

Safe embedded Rust API for OSRM route, table, and trip services.
1
2
3
4
5
6
7
8
9
10
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
#[non_exhaustive]
pub struct Waypoint {
    pub hint: String,
    pub location: [f64; 2],
    pub name: String,
    pub distance: f64,
}