[][src]Enum google_maps::PlaceType

pub enum PlaceType {
    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,
}

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
Airport

Indicates an 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

Indicates a named 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

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

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

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

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

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
ColloquialArea

Indicates a commonly-used alternative name for the entity.

Continent
Country

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

Establishment
Finance
Floor
Food
GeneralContractor
Geocode
Health
Intersection

Indicates a major intersection, usually of two major roads.

Locality

Indicates an incorporated city or town political entity.

NaturalFeature

Indicates a prominent natural feature.

Neighborhood

Indicates a named neighborhood.

PlaceOfWorship
PointOfInterest

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

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

PostBox
PostalCode

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

PostalCodePrefix
PostalCodeSuffix
PostalTown
Premise

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

Room
Route

Indicates a named route (such as "US 101").

StreetAddress

Indicates a precise street address.

StreetNumber
Sublocality

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
SublocalityLevel2
SublocalityLevel3
SublocalityLevel4
SublocalityLevel5
Subpremise

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

TownSquare
Address
Regions
Cities

Implementations

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]

fn default() -> Self[src]

Returns a reasonable default variant for the PlaceType enum type.

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

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]

impl Ord for PlaceType[src]

impl PartialEq<PlaceType> for PlaceType[src]

impl PartialOrd<PlaceType> for PlaceType[src]

impl Serialize for PlaceType[src]

impl StructuralEq for PlaceType[src]

impl StructuralPartialEq for PlaceType[src]

impl<'_> TryFrom<&'_ str> for PlaceType[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(place_type: &str) -> Result<PlaceType, Error>[src]

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

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: for<'de> 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> ToString for T where
    T: Display + ?Sized
[src]

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>,