Enum google_maps::PlaceType
source · #[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
impl PlaceType
sourcepub fn vec_to_csv(place_types: &[Self]) -> String
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<'de> Deserialize<'de> for PlaceType
impl<'de> Deserialize<'de> for PlaceType
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
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 From<&PlaceType> for &str
impl From<&PlaceType> for &str
source§fn from(place_type: &PlaceType) -> Self
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
impl From<&PlaceType> for String
source§fn from(place_type: &PlaceType) -> Self
fn from(place_type: &PlaceType) -> Self
Converts a PlaceType
enum to a String
that contains a place
type
code.
source§impl Ord for PlaceType
impl Ord for PlaceType
source§impl PartialEq for PlaceType
impl PartialEq for PlaceType
source§impl PartialOrd for PlaceType
impl PartialOrd for PlaceType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PlaceType
impl Eq for PlaceType
impl StructuralPartialEq for PlaceType
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§
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.