pub struct RouteGeometry {
pub polyline: String,
pub engine: String,
pub costing: Option<String>,
pub computed_at: i64,
}Expand description
Snapped geometry for a route, computed by a routing engine or imported from GPX. Stored alongside the route so that viewers don’t need to re-snap on every render.
Fields§
§polyline: StringEncoded polyline (Google polyline algorithm, precision 6 for Valhalla output).
engine: StringSource engine: “valhalla” | “manual” | “gpx” | other future values.
costing: Option<String>Engine-specific costing/profile, e.g. “pedestrian”, “bicycle”, “auto”.
computed_at: i64Unix milliseconds when this geometry was computed.
Trait Implementations§
Source§impl Clone for RouteGeometry
impl Clone for RouteGeometry
Source§fn clone(&self) -> RouteGeometry
fn clone(&self) -> RouteGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouteGeometry
impl Debug for RouteGeometry
Source§impl<'de> Deserialize<'de> for RouteGeometry
impl<'de> Deserialize<'de> for RouteGeometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RouteGeometry
impl PartialEq for RouteGeometry
Source§fn eq(&self, other: &RouteGeometry) -> bool
fn eq(&self, other: &RouteGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RouteGeometry
impl Serialize for RouteGeometry
impl StructuralPartialEq for RouteGeometry
Auto Trait Implementations§
impl Freeze for RouteGeometry
impl RefUnwindSafe for RouteGeometry
impl Send for RouteGeometry
impl Sync for RouteGeometry
impl Unpin for RouteGeometry
impl UnsafeUnpin for RouteGeometry
impl UnwindSafe for RouteGeometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more