[][src]Struct google_maps::PlusCode

pub struct PlusCode {
    pub global_code: String,
    pub compound_code: Option<String>,
}

(See Open Location Code and plus codes) is an encoded location reference, derived from latitude and longitude coordinates, that represents an area: 1/8000th of a degree by 1/8000th of a degree (about 14m x 14m at the equator) or smaller. Plus codes can be used as a replacement for street addresses in places where they do not exist (where buildings are not numbered or streets are not named).

Typically, both the global code and compound code are returned. However, if the result is in a remote location (for example, an ocean or desert) only the global code may be returned.

Fields

global_code: String

A 4 character area code and 6 character or longer local code (849VCWC8+R9).

compound_code: Option<String>

A 6 character or longer local code with an explicit location (CWC8+R9, Mountain View, CA, USA).

Trait Implementations

impl Clone for PlusCode[src]

impl Debug for PlusCode[src]

impl<'de> Deserialize<'de> for PlusCode[src]

impl Eq for PlusCode[src]

impl Hash for PlusCode[src]

impl Ord for PlusCode[src]

impl PartialEq<PlusCode> for PlusCode[src]

impl PartialOrd<PlusCode> for PlusCode[src]

impl Serialize for PlusCode[src]

impl StructuralEq for PlusCode[src]

impl StructuralPartialEq for PlusCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,