pub struct SnappedPoint {
pub location: LatLng,
pub place_id: Option<String>,
pub origin_index: Option<usize>,
}Expand description
Fields§
§location: LatLngSee LatitudeLongitudeLiteral for more information.
place_id: Option<String>A unique identifier for a place. All place IDs returned by the Roads API correspond to road segments.
origin_index: Option<usize>An integer that indicates the corresponding value in the original
request. Each value in the request should map to a snapped value in the
response. However, if you’ve set interpolate=true, then it’s possible
that the response will contain more coordinates than the request.
Interpolated values will not have an originalIndex. These values are
indexed from 0, so a point with an originalIndex of 4 will be the
snapped value of the 5th latitude/longitude passed to the path
parameter.
Trait Implementations§
Source§impl Clone for SnappedPoint
impl Clone for SnappedPoint
Source§fn clone(&self) -> SnappedPoint
fn clone(&self) -> SnappedPoint
Returns a duplicate of the value. Read more
1.0.0 · 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 SnappedPoint
impl Debug for SnappedPoint
Source§impl<'de> Deserialize<'de> for SnappedPoint
impl<'de> Deserialize<'de> for SnappedPoint
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 Hash for SnappedPoint
impl Hash for SnappedPoint
Source§impl PartialEq for SnappedPoint
impl PartialEq for SnappedPoint
Source§impl Serialize for SnappedPoint
impl Serialize for SnappedPoint
impl Eq for SnappedPoint
impl StructuralPartialEq for SnappedPoint
Auto Trait Implementations§
impl Freeze for SnappedPoint
impl RefUnwindSafe for SnappedPoint
impl Send for SnappedPoint
impl Sync for SnappedPoint
impl Unpin for SnappedPoint
impl UnsafeUnpin for SnappedPoint
impl UnwindSafe for SnappedPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.