#[repr(u8)]
pub enum PlaceType {
Show 144 variants Accounting = 0, Airport = 1, AmusementPark = 2, Aquarium = 3, ArtGallery = 4, Atm = 5, Bakery = 6, Bank = 7, Bar = 8, BeautySalon = 9, BicycleStore = 10, BookStore = 11, BowlingAlley = 12, BusStation = 13, Cafe = 14, Campground = 15, CarDealer = 16, CarRental = 17, CarRepair = 18, CarWash = 19, Casino = 20, Cemetery = 21, Church = 22, CityHall = 23, ClothingStore = 24, ConvenienceStore = 25, Courthouse = 26, Dentist = 27, DepartmentStore = 28, Doctor = 29, DrugStore = 30, Electrician = 31, ElectronicsStore = 32, Embassy = 33, FireStation = 34, Florist = 35, FuneralHome = 36, FurnitureStore = 37, GasStation = 38, GroceryOrSupermarket = 39, Gym = 40, HairCare = 41, HardwareStore = 42, HinduTemple = 43, HomeGoodsStore = 44, Hospital = 45, InsuranceAgency = 46, JewelryStore = 47, Laundry = 48, Lawyer = 49, Library = 50, LightRailStation = 51, LiquorStore = 52, LocalGovernmentOffice = 53, Locksmith = 54, Lodging = 55, MealDelivery = 56, MealTakeaway = 57, Mosque = 58, MovieRental = 59, MovieTheater = 60, MovingCompany = 61, Museum = 62, NightClub = 63, Painter = 64, Park = 65, Parking = 66, PetStore = 67, Pharmacy = 68, Physiotherapist = 69, Plumber = 70, PlusCode = 71, Police = 72, PostOffice = 73, PrimarySchool = 74, RealEstateAgency = 75, Restaurant = 76, RoofingContractor = 77, RvPark = 78, School = 79, SecondarySchool = 80, ShoeStore = 81, ShoppingMall = 82, Spa = 83, Stadium = 84, Storage = 85, Store = 86, SubwayStation = 87, Supermarket = 88, Synagogue = 89, TaxiStand = 90, TouristAttraction = 91, TrainStation = 92, TransitStation = 93, TravelAgency = 94, University = 95, VeterinaryCare = 96, Zoo = 97, AdministrativeAreaLevel1 = 98, AdministrativeAreaLevel2 = 99, AdministrativeAreaLevel3 = 100, AdministrativeAreaLevel4 = 101, AdministrativeAreaLevel5 = 102, Archipelago = 103, ColloquialArea = 104, Continent = 105, Country = 106, Establishment = 107, Finance = 108, Floor = 109, Food = 110, GeneralContractor = 111, Geocode = 112, Health = 113, Intersection = 114, Locality = 115, NaturalFeature = 116, Neighborhood = 117, PlaceOfWorship = 118, PointOfInterest = 119, Political = 120, PostBox = 121, PostalCode = 122, PostalCodePrefix = 123, PostalCodeSuffix = 124, PostalTown = 125, Premise = 126, Room = 127, Route = 128, StreetAddress = 129, StreetNumber = 130, Sublocality = 131, SublocalityLevel1 = 132, SublocalityLevel2 = 133, SublocalityLevel3 = 134, SublocalityLevel4 = 135, SublocalityLevel5 = 136, Subpremise = 137, TownSquare = 138, Address = 139, Regions = 140, Cities = 141, Landmark = 142, Other = 143,
}
Expand description

This specifies the types or categories of a place. For example, a returned location could be a “country” (as in a nation) or it could be a “shopping mall.” Also, a requested place could be a “locality” (a city) or a “street_address” This type helps define the data that is being returned or sought. See Place Types for more information.

Variants§

§

Accounting = 0

§

Airport = 1

Indicates an airport.

§

AmusementPark = 2

§

Aquarium = 3

§

ArtGallery = 4

§

Atm = 5

§

Bakery = 6

§

Bank = 7

§

Bar = 8

§

BeautySalon = 9

§

BicycleStore = 10

§

BookStore = 11

§

BowlingAlley = 12

§

BusStation = 13

§

Cafe = 14

§

Campground = 15

§

CarDealer = 16

§

CarRental = 17

§

CarRepair = 18

§

CarWash = 19

§

Casino = 20

§

Cemetery = 21

§

Church = 22

§

CityHall = 23

§

ClothingStore = 24

§

ConvenienceStore = 25

§

Courthouse = 26

§

Dentist = 27

§

DepartmentStore = 28

§

Doctor = 29

§

DrugStore = 30

§

Electrician = 31

§

ElectronicsStore = 32

§

Embassy = 33

§

FireStation = 34

§

Florist = 35

§

FuneralHome = 36

§

FurnitureStore = 37

§

GasStation = 38

§

GroceryOrSupermarket = 39

§

Gym = 40

§

HairCare = 41

§

HardwareStore = 42

§

HinduTemple = 43

§

HomeGoodsStore = 44

§

Hospital = 45

§

InsuranceAgency = 46

§

JewelryStore = 47

§

Laundry = 48

§

Lawyer = 49

§

Library = 50

§

LightRailStation = 51

§

LiquorStore = 52

§

LocalGovernmentOffice = 53

§

Locksmith = 54

§

Lodging = 55

§

MealDelivery = 56

§

MealTakeaway = 57

§

Mosque = 58

§

MovieRental = 59

§

MovieTheater = 60

§

MovingCompany = 61

§

Museum = 62

§

NightClub = 63

§

Painter = 64

§

Park = 65

Indicates a named park.

§

Parking = 66

§

PetStore = 67

§

Pharmacy = 68

§

Physiotherapist = 69

§

Plumber = 70

§

PlusCode = 71

§

Police = 72

§

PostOffice = 73

§

PrimarySchool = 74

§

RealEstateAgency = 75

§

Restaurant = 76

§

RoofingContractor = 77

§

RvPark = 78

§

School = 79

§

SecondarySchool = 80

§

ShoeStore = 81

§

ShoppingMall = 82

§

Spa = 83

§

Stadium = 84

§

Storage = 85

§

Store = 86

§

SubwayStation = 87

§

Supermarket = 88

§

Synagogue = 89

§

TaxiStand = 90

§

TouristAttraction = 91

§

TrainStation = 92

§

TransitStation = 93

§

TravelAgency = 94

§

University = 95

§

VeterinaryCare = 96

§

Zoo = 97

§

AdministrativeAreaLevel1 = 98

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.

§

AdministrativeAreaLevel2 = 99

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.

§

AdministrativeAreaLevel3 = 100

Indicates a third-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.

§

AdministrativeAreaLevel4 = 101

Indicates a fourth-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.

§

AdministrativeAreaLevel5 = 102

Indicates a fifth-order civil entity below the country level. This type indicates a minor civil division. Not all nations exhibit these administrative levels.

§

Archipelago = 103

§

ColloquialArea = 104

Indicates a commonly-used alternative name for the entity.

§

Continent = 105

§

Country = 106

Indicates the national political entity, and is typically the highest order type returned by the Geocoder.

§

Establishment = 107

§

Finance = 108

§

Floor = 109

§

Food = 110

§

GeneralContractor = 111

§

Geocode = 112

§

Health = 113

§

Intersection = 114

Indicates a major intersection, usually of two major roads.

§

Locality = 115

Indicates an incorporated city or town political entity.

§

NaturalFeature = 116

Indicates a prominent natural feature.

§

Neighborhood = 117

Indicates a named neighborhood.

§

PlaceOfWorship = 118

§

PointOfInterest = 119

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”.

§

Political = 120

Indicates a political entity. Usually, this type indicates a polygon of some civil administration.

§

PostBox = 121

§

PostalCode = 122

Indicates a postal code as used to address postal mail within the country.

§

PostalCodePrefix = 123

§

PostalCodeSuffix = 124

§

PostalTown = 125

§

Premise = 126

Indicates a named location, usually a building or collection of buildings with a common name.

§

Room = 127

§

Route = 128

Indicates a named route (such as “US 101”).

§

StreetAddress = 129

Indicates a precise street address.

§

StreetNumber = 130

§

Sublocality = 131

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.

§

SublocalityLevel1 = 132

§

SublocalityLevel2 = 133

§

SublocalityLevel3 = 134

§

SublocalityLevel4 = 135

§

SublocalityLevel5 = 136

§

Subpremise = 137

Indicates a first-order entity below a named location, usually a singular building within a collection of buildings with a common name.

§

TownSquare = 138

§

Address = 139

§

Regions = 140

§

Cities = 141

§

Landmark = 142

§

Other = 143

Implementations§

source§

impl PlaceType

source

pub const fn display(&self) -> &str

Formats a PlaceType enum into a string that is presentable to the end user.

source§

impl PlaceType

source

pub fn vec_to_csv(place_types: &[Self]) -> String

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§

source§

impl Clone for PlaceType

source§

fn clone(&self) -> PlaceType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PlaceType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PlaceType

source§

fn default() -> PlaceType

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for PlaceType

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Manual implementation of Deserialize for serde. This will take advantage of the phf-powered TryFrom implementation for this type.

source§

impl Display for PlaceType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Converts a PlaceType enum to a String that contains a place type code.

source§

impl From<&PlaceType> for &str

source§

fn from(place_type: &PlaceType) -> Self

Converts a PlaceType enum to a String that contains a place type code.

source§

impl From<&PlaceType> for String

source§

fn from(place_type: &PlaceType) -> Self

Converts a PlaceType enum to a String that contains a place type code.

source§

impl FromStr for PlaceType

source§

fn from_str(place_type_code: &str) -> Result<Self, Self::Err>

Gets a PlaceType enum from a String that contains a supported place type code.

§

type Err = Error

The associated error which can be returned from parsing.
source§

impl Hash for PlaceType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for PlaceType

source§

fn cmp(&self, other: &PlaceType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for PlaceType

source§

fn eq(&self, other: &PlaceType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for PlaceType

source§

fn partial_cmp(&self, other: &PlaceType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for PlaceType

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Manual implementation of Serialize for serde.

source§

impl TryFrom<&str> for PlaceType

source§

fn try_from(place_type_code: &str) -> Result<Self, Self::Error>

Gets a PlaceType enum from a String that contains a supported place type code.

§

type Error = Error

The type returned in the event of a conversion error.
source§

impl Copy for PlaceType

source§

impl Eq for PlaceType

source§

impl StructuralPartialEq for PlaceType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

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

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

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

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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