GooglePlacesSwift Framework Reference

  • PlaceType is a struct inGooglePlacesSwift used to categorize places like restaurants, airports, or schools.

  • It's easily comparable, hashable, and representable by raw string values for convenience.

  • You can initialize aPlaceType using a raw string like "restaurant" and access its string value via therawValue property.

  • GooglePlacesSwift supports numerous place types, with comprehensive lists available in the Google Maps Places SDK documentation.

  • UsePlaceType to categorize, filter search results, and display relevant place information in your application.

PlaceType

structPlaceType
extensionPlaceType:Equatable,Hashable,RawRepresentable,Sendable

All Places (NEW) API place types found athttps://developers.google.com/maps/documentation/places/ios-sdk/place-typesAll Place Types found athttps://developers.google.com/maps/documentation/places/ios-sdk/supported_types

  • The raw type that can be used to represent all values of the conformingtype.

    Every distinct value of the conforming type has a corresponding uniquevalue of theRawValue type, but there may be values of theRawValuetype that don’t have a corresponding value of the conforming type.

    Declaration

    Swift

    typealiasRawValue=String
  • Declaration

    Swift

    staticletaccounting:PlaceType
  • Declaration

    Swift

    staticletaddress:PlaceType
  • Declaration

    Swift

    staticletadministrativeAreaLevel1:PlaceType
  • Declaration

    Swift

    staticletadministrativeAreaLevel2:PlaceType
  • Declaration

    Swift

    staticletadministrativeAreaLevel3:PlaceType
  • Declaration

    Swift

    staticletadministrativeAreaLevel4:PlaceType
  • Declaration

    Swift

    staticletadministrativeAreaLevel5:PlaceType
  • Declaration

    Swift

    staticletairport:PlaceType
  • Declaration

    Swift

    staticletamusementPark:PlaceType
  • Declaration

    Swift

    staticletaquarium:PlaceType
  • Declaration

    Swift

    staticletartGallery:PlaceType
  • Declaration

    Swift

    staticletatm:PlaceType
  • Declaration

    Swift

    staticletbakery:PlaceType
  • Declaration

    Swift

    staticletbank:PlaceType
  • Declaration

    Swift

    staticletbar:PlaceType
  • Declaration

    Swift

    staticletbeautySalon:PlaceType
  • Declaration

    Swift

    staticletbicycleStore:PlaceType
  • Declaration

    Swift

    staticletbookStore:PlaceType
  • Declaration

    Swift

    staticletbowlingAlley:PlaceType
  • Declaration

    Swift

    staticletbusStation:PlaceType
  • Declaration

    Swift

    staticletcafe:PlaceType
  • Declaration

    Swift

    staticletcampground:PlaceType
  • Declaration

    Swift

    staticletcarDealer:PlaceType
  • Declaration

    Swift

    staticletcarRental:PlaceType
  • Declaration

    Swift

    staticletcarRepair:PlaceType
  • Declaration

    Swift

    staticletcarWash:PlaceType
  • Declaration

    Swift

    staticletcasino:PlaceType
  • Declaration

    Swift

    staticletcemetery:PlaceType
  • Declaration

    Swift

    staticletchurch:PlaceType
  • Declaration

    Swift

    staticletcities:PlaceType
  • Declaration

    Swift

    staticletcityHall:PlaceType
  • Declaration

    Swift

    staticletclothingStore:PlaceType
  • Declaration

    Swift

    staticletcolloquialArea:PlaceType
  • Declaration

    Swift

    staticletconvenienceStore:PlaceType
  • Declaration

    Swift

    staticletcountry:PlaceType
  • Declaration

    Swift

    staticletcourthouse:PlaceType
  • Declaration

    Swift

    staticletdentist:PlaceType
  • Declaration

    Swift

    staticletdepartmentStore:PlaceType
  • Declaration

    Swift

    staticletdoctor:PlaceType
  • Declaration

    Swift

    staticletdrugstore:PlaceType
  • Declaration

    Swift

    staticletelectrician:PlaceType
  • Declaration

    Swift

    staticletelectronicsStore:PlaceType
  • Declaration

    Swift

    staticletembassy:PlaceType
  • Declaration

    Swift

    staticletestablishment:PlaceType
  • Declaration

    Swift

    staticletfinance:PlaceType
  • Declaration

    Swift

    staticletfireStation:PlaceType
  • Declaration

    Swift

    staticletfloor:PlaceType
  • Declaration

    Swift

    staticletflorist:PlaceType
  • Declaration

    Swift

    staticletfood:PlaceType
  • Declaration

    Swift

    staticletfuneralHome:PlaceType
  • Declaration

    Swift

    staticletfurnitureStore:PlaceType
  • Declaration

    Swift

    staticletgasStation:PlaceType
  • Declaration

    Swift

    staticletgeneralContractor:PlaceType
  • Declaration

    Swift

    staticletgeocode:PlaceType
  • Declaration

    Swift

    staticletgroceryOrSupermarket:PlaceType
  • Declaration

    Swift

    staticletgym:PlaceType
  • Declaration

    Swift

    staticlethairCare:PlaceType
  • Declaration

    Swift

    staticlethardwareStore:PlaceType
  • Declaration

    Swift

    staticlethealth:PlaceType
  • Declaration

    Swift

    staticlethinduTemple:PlaceType
  • Declaration

    Swift

    staticlethomeGoodsStore:PlaceType
  • Declaration

    Swift

    staticlethospital:PlaceType
  • Creates a new instance with the specified raw value.

    If there is no value of the type that corresponds with the specified rawvalue, this initializer returnsnil. For example:

    enumPaperSize:String{caseA4,A5,Letter,Legal}print(PaperSize(rawValue:"Legal"))// Prints "Optional(PaperSize.Legal)"print(PaperSize(rawValue:"Tabloid"))// Prints "nil"

    Declaration

    Swift

    init(rawValue:String)

    Parameters

    rawValue

    The raw value to use for the new instance.

  • Declaration

    Swift

    staticletinsuranceAgency:PlaceType
  • Declaration

    Swift

    staticletintersection:PlaceType
  • Declaration

    Swift

    staticletjewelryStore:PlaceType
  • Declaration

    Swift

    staticletlaundry:PlaceType
  • Declaration

    Swift

    staticletlawyer:PlaceType
  • Declaration

    Swift

    staticletlibrary:PlaceType
  • Declaration

    Swift

    staticletlightRailStation:PlaceType
  • Declaration

    Swift

    staticletliquorStore:PlaceType
  • Declaration

    Swift

    staticletlocalGovernmentOffice:PlaceType
  • Declaration

    Swift

    staticletlocality:PlaceType
  • Declaration

    Swift

    staticletlocksmith:PlaceType
  • Declaration

    Swift

    staticletlodging:PlaceType
  • Declaration

    Swift

    staticletmealDelivery:PlaceType
  • Declaration

    Swift

    staticletmealTakeaway:PlaceType
  • Declaration

    Swift

    staticletmosque:PlaceType
  • Declaration

    Swift

    staticletmovieRental:PlaceType
  • Declaration

    Swift

    staticletmovieTheater:PlaceType
  • Declaration

    Swift

    staticletmovingCompany:PlaceType
  • Declaration

    Swift

    staticletmuseum:PlaceType
  • Declaration

    Swift

    staticletnaturalFeature:PlaceType
  • Declaration

    Swift

    staticletneighborhood:PlaceType
  • Declaration

    Swift

    staticletnightClub:PlaceType
  • Declaration

    Swift

    staticletpainter:PlaceType
  • Declaration

    Swift

    staticletpark:PlaceType
  • Declaration

    Swift

    staticletparking:PlaceType
  • Declaration

    Swift

    staticletpetStore:PlaceType
  • Declaration

    Swift

    staticletpharmacy:PlaceType
  • Declaration

    Swift

    staticletphysiotherapist:PlaceType
  • Declaration

    Swift

    staticletplaceOfWorship:PlaceType
  • Declaration

    Swift

    staticletplumber:PlaceType
  • Declaration

    Swift

    staticletpointOfInterest:PlaceType
  • Declaration

    Swift

    staticletpolice:PlaceType
  • Declaration

    Swift

    staticletpolitical:PlaceType
  • Declaration

    Swift

    staticletpostBox:PlaceType
  • Declaration

    Swift

    staticletpostOffice:PlaceType
  • Declaration

    Swift

    staticletpostalCode:PlaceType
  • Declaration

    Swift

    staticletpostalCodePrefix:PlaceType
  • Declaration

    Swift

    staticletpostalCodeSuffix:PlaceType
  • Declaration

    Swift

    staticletpostalTown:PlaceType
  • Declaration

    Swift

    staticletpremise:PlaceType
  • Declaration

    Swift

    staticletprimarySchool:PlaceType
  • The corresponding value of the raw type.

    A new instance initialized withrawValue will be equivalent to thisinstance. For example:

    enumPaperSize:String{caseA4,A5,Letter,Legal}letselectedSize=PaperSize.Letterprint(selectedSize.rawValue)// Prints "Letter"print(selectedSize==PaperSize(rawValue:selectedSize.rawValue)!)// Prints "true"

    Declaration

    Swift

    letrawValue:String
  • Declaration

    Swift

    staticletrealEstateAgency:PlaceType
  • Declaration

    Swift

    staticletregions:PlaceType
  • Declaration

    Swift

    staticletrestaurant:PlaceType
  • Declaration

    Swift

    staticletroofingContractor:PlaceType
  • Declaration

    Swift

    staticletroom:PlaceType
  • Declaration

    Swift

    staticletroute:PlaceType
  • Declaration

    Swift

    staticletrvPark:PlaceType
  • Declaration

    Swift

    staticletschool:PlaceType
  • Declaration

    Swift

    staticletsecondarySchool:PlaceType
  • Declaration

    Swift

    staticletshoeStore:PlaceType
  • Declaration

    Swift

    staticletshoppingMall:PlaceType
  • Declaration

    Swift

    staticletspa:PlaceType
  • Declaration

    Swift

    staticletstadium:PlaceType
  • Declaration

    Swift

    staticletstorage:PlaceType
  • Declaration

    Swift

    staticletstore:PlaceType
  • Declaration

    Swift

    staticletstreetAddress:PlaceType
  • Declaration

    Swift

    staticletstreetNumber:PlaceType
  • Declaration

    Swift

    staticletsublocality:PlaceType
  • Declaration

    Swift

    staticletsublocalityLevel1:PlaceType
  • Declaration

    Swift

    staticletsublocalityLevel2:PlaceType
  • Declaration

    Swift

    staticletsublocalityLevel3:PlaceType
  • Declaration

    Swift

    staticletsublocalityLevel4:PlaceType
  • Declaration

    Swift

    staticletsublocalityLevel5:PlaceType
  • Declaration

    Swift

    staticletsubpremise:PlaceType
  • Declaration

    Swift

    staticletsubwayStation:PlaceType
  • Declaration

    Swift

    staticletsupermarket:PlaceType
  • Declaration

    Swift

    staticletsynagogue:PlaceType
  • Declaration

    Swift

    staticlettaxiStand:PlaceType
  • Declaration

    Swift

    staticlettouristAttraction:PlaceType
  • Declaration

    Swift

    staticlettownSquare:PlaceType
  • Declaration

    Swift

    staticlettrainStation:PlaceType
  • Declaration

    Swift

    staticlettransitStation:PlaceType
  • Declaration

    Swift

    staticlettravelAgency:PlaceType
  • Declaration

    Swift

    staticletuniversity:PlaceType
  • Declaration

    Swift

    staticletveterinaryCare:PlaceType
  • Declaration

    Swift

    staticletzoo:PlaceType

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-27 UTC.