Enum google_maps::prelude::PlaceType [−][src]
pub enum PlaceType {}Show variants
Accounting, Airport, AmusementPark, Aquarium, ArtGallery, Atm, Bakery, Bank, Bar, BeautySalon, BicycleStore, BookStore, BowlingAlley, BusStation, Cafe, Campground, CarDealer, CarRental, CarRepair, CarWash, Casino, Cemetery, Church, CityHall, ClothingStore, ConvenienceStore, Courthouse, Dentist, DepartmentStore, Doctor, DrugStore, Electrician, ElectronicsStore, Embassy, FireStation, Florist, FuneralHome, FurnitureStore, GasStation, GroceryOrSupermarket, Gym, HairCare, HardwareStore, HinduTemple, HomeGoodsStore, Hospital, InsuranceAgency, JewelryStore, Laundry, Lawyer, Library, LightRailStation, LiquorStore, LocalGovernmentOffice, Locksmith, Lodging, MealDelivery, MealTakeaway, Mosque, MovieRental, MovieTheater, MovingCompany, Museum, NightClub, Painter, Park, Parking, PetStore, Pharmacy, Physiotherapist, Plumber, PlusCode, Police, PostOffice, PrimarySchool, RealEstateAgency, Restaurant, RoofingContractor, RvPark, School, SecondarySchool, ShoeStore, ShoppingMall, Spa, Stadium, Storage, Store, SubwayStation, Supermarket, Synagogue, TaxiStand, TouristAttraction, TrainStation, TransitStation, TravelAgency, University, VeterinaryCare, Zoo, AdministrativeAreaLevel1, AdministrativeAreaLevel2, AdministrativeAreaLevel3, AdministrativeAreaLevel4, AdministrativeAreaLevel5, Archipelago, ColloquialArea, Continent, Country, Establishment, Finance, Floor, Food, GeneralContractor, Geocode, Health, Intersection, Locality, NaturalFeature, Neighborhood, PlaceOfWorship, PointOfInterest, Political, PostBox, PostalCode, PostalCodePrefix, PostalCodeSuffix, PostalTown, Premise, Room, Route, StreetAddress, StreetNumber, Sublocality, SublocalityLevel1, SublocalityLevel2, SublocalityLevel3, SublocalityLevel4, SublocalityLevel5, Subpremise, TownSquare, Address, Regions, Cities,
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
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.
Implementations
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
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
Converts a PlaceType
enum to a String
that contains a place
type
code.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PlaceType
impl UnwindSafe for PlaceType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V