[−][src]Enum google_maps::PlaceType
Variants
Indicates an airport.
Indicates a named park.
Indicates a first-order civil entity below the country level. Within the
United States, these administrative levels are states. Not all nations
exhibit these administrative levels. In most cases,
AdministrativeAreaLevel1
short names will closely match ISO 3166-2
subdivisions and other widely circulated lists; however this is not
guaranteed as our geocoding results are based on a variety of signals
and location data.
Indicates a second-order civil entity below the country level. Within the United States, these administrative levels are counties. Not all nations exhibit these administrative levels.
Indicates a third-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.
Indicates a fourth-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.
Indicates a fifth-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.
Indicates a commonly-used alternative name for the entity.
Indicates the national political entity, and is typically the highest order type returned by the Geocoder.
Indicates a major intersection, usually of two major roads.
Indicates an incorporated city or town political entity.
Indicates a prominent natural feature.
Indicates a named neighborhood.
Indicates a named point of interest. Typically, these "POI"s are prominent local entities that don't easily fit in another category, such as "Empire State Building" or "Eiffel Tower".
Indicates a political entity. Usually, this type indicates a polygon of some civil administration.
Indicates a postal code as used to address postal mail within the country.
Indicates a named location, usually a building or collection of buildings with a common name.
Indicates a named route (such as "US 101").
Indicates a precise street address.
Indicates a first-order civil entity below a locality. For some
locations may receive one of the additional types: SublocalityLevel1
to SublocalityLevel5
. Each sublocality level is a civil entity. Larger
numbers indicate a smaller geographic area.
Indicates a first-order entity below a named location, usually a singular building within a collection of buildings with a common name.
Methods
impl PlaceType
[src]
pub fn vec_to_csv(place_types: &[PlaceType]) -> String
[src]
A helper function that converts a Vec<PlaceType>
(i.e. an array of
PlaceType enum) to a String
that contains a comma-delimited list of
place
types
codes.
Trait Implementations
impl Clone for PlaceType
[src]
impl Debug for PlaceType
[src]
impl Default for PlaceType
[src]
impl<'de> Deserialize<'de> for PlaceType
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for PlaceType
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats a PlaceType
enum into a string that is presentable to the end
user.
impl Eq for PlaceType
[src]
impl<'_> From<&'_ PlaceType> for String
[src]
fn from(place_type: &PlaceType) -> String
[src]
Converts a PlaceType
enum to a String
that contains a place
type
code.
impl Hash for PlaceType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PlaceType
[src]
fn cmp(&self, other: &PlaceType) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PlaceType> for PlaceType
[src]
impl PartialOrd<PlaceType> for PlaceType
[src]
fn partial_cmp(&self, other: &PlaceType) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for PlaceType
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for PlaceType
[src]
impl StructuralPartialEq for PlaceType
[src]
impl TryFrom<String> for PlaceType
[src]
Auto Trait Implementations
impl RefUnwindSafe for PlaceType
impl Send for PlaceType
impl Sync for PlaceType
impl Unpin for PlaceType
impl UnwindSafe for PlaceType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,