GooglePlacesSwift Framework Reference Stay organized with collections Save and categorize content based on your preferences.
AI-generated Key Takeaways
PlaceTypeis a struct inGooglePlacesSwiftused to categorize places like restaurants, airports, or schools.It's easily comparable, hashable, and representable by raw string values for convenience.
You can initialize a
PlaceTypeusing a raw string like "restaurant" and access its string value via therawValueproperty.GooglePlacesSwiftsupports numerous place types, with comprehensive lists available in the Google Maps Places SDK documentation.Use
PlaceTypeto categorize, filter search results, and display relevant place information in your application.
PlaceType
structPlaceTypeextensionPlaceType:Equatable,Hashable,RawRepresentable,SendableAll 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 the
RawValuetype, but there may be values of theRawValuetype that don’t have a corresponding value of the conforming type.Declaration
Swift
typealiasRawValue=StringDeclaration
Swift
staticletaccounting:PlaceTypeDeclaration
Swift
staticletaddress:PlaceTypeDeclaration
Swift
staticletadministrativeAreaLevel1:PlaceTypeDeclaration
Swift
staticletadministrativeAreaLevel2:PlaceTypeDeclaration
Swift
staticletadministrativeAreaLevel3:PlaceTypeDeclaration
Swift
staticletadministrativeAreaLevel4:PlaceTypeDeclaration
Swift
staticletadministrativeAreaLevel5:PlaceTypeDeclaration
Swift
staticletairport:PlaceTypeDeclaration
Swift
staticletamusementPark:PlaceTypeDeclaration
Swift
staticletaquarium:PlaceTypeDeclaration
Swift
staticletartGallery:PlaceTypeDeclaration
Swift
staticletatm:PlaceTypeDeclaration
Swift
staticletbakery:PlaceTypeDeclaration
Swift
staticletbank:PlaceTypeDeclaration
Swift
staticletbar:PlaceTypeDeclaration
Swift
staticletbeautySalon:PlaceTypeDeclaration
Swift
staticletbicycleStore:PlaceTypeDeclaration
Swift
staticletbookStore:PlaceTypeDeclaration
Swift
staticletbowlingAlley:PlaceTypeDeclaration
Swift
staticletbusStation:PlaceTypeDeclaration
Swift
staticletcafe:PlaceTypeDeclaration
Swift
staticletcampground:PlaceTypeDeclaration
Swift
staticletcarDealer:PlaceTypeDeclaration
Swift
staticletcarRental:PlaceTypeDeclaration
Swift
staticletcarRepair:PlaceTypeDeclaration
Swift
staticletcarWash:PlaceTypeDeclaration
Swift
staticletcasino:PlaceTypeDeclaration
Swift
staticletcemetery:PlaceTypeDeclaration
Swift
staticletchurch:PlaceTypeDeclaration
Swift
staticletcities:PlaceTypeDeclaration
Swift
staticletcityHall:PlaceTypeDeclaration
Swift
staticletclothingStore:PlaceTypeDeclaration
Swift
staticletcolloquialArea:PlaceTypeDeclaration
Swift
staticletconvenienceStore:PlaceTypeDeclaration
Swift
staticletcountry:PlaceTypeDeclaration
Swift
staticletcourthouse:PlaceTypeDeclaration
Swift
staticletdentist:PlaceTypeDeclaration
Swift
staticletdepartmentStore:PlaceTypeDeclaration
Swift
staticletdoctor:PlaceTypeDeclaration
Swift
staticletdrugstore:PlaceTypeDeclaration
Swift
staticletelectrician:PlaceTypeDeclaration
Swift
staticletelectronicsStore:PlaceTypeDeclaration
Swift
staticletembassy:PlaceTypeDeclaration
Swift
staticletestablishment:PlaceTypeDeclaration
Swift
staticletfinance:PlaceTypeDeclaration
Swift
staticletfireStation:PlaceTypeDeclaration
Swift
staticletfloor:PlaceTypeDeclaration
Swift
staticletflorist:PlaceTypeDeclaration
Swift
staticletfood:PlaceTypeDeclaration
Swift
staticletfuneralHome:PlaceTypeDeclaration
Swift
staticletfurnitureStore:PlaceTypeDeclaration
Swift
staticletgasStation:PlaceTypeDeclaration
Swift
staticletgeneralContractor:PlaceTypeDeclaration
Swift
staticletgeocode:PlaceTypeDeclaration
Swift
staticletgroceryOrSupermarket:PlaceTypeDeclaration
Swift
staticletgym:PlaceTypeDeclaration
Swift
staticlethairCare:PlaceTypeDeclaration
Swift
staticlethardwareStore:PlaceTypeDeclaration
Swift
staticlethealth:PlaceTypeDeclaration
Swift
staticlethinduTemple:PlaceTypeDeclaration
Swift
staticlethomeGoodsStore:PlaceTypeDeclaration
Swift
staticlethospital:PlaceTypeCreates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified rawvalue, this initializer returns
nil. 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
rawValueThe raw value to use for the new instance.
Declaration
Swift
staticletinsuranceAgency:PlaceTypeDeclaration
Swift
staticletintersection:PlaceTypeDeclaration
Swift
staticletjewelryStore:PlaceTypeDeclaration
Swift
staticletlaundry:PlaceTypeDeclaration
Swift
staticletlawyer:PlaceTypeDeclaration
Swift
staticletlibrary:PlaceTypeDeclaration
Swift
staticletlightRailStation:PlaceTypeDeclaration
Swift
staticletliquorStore:PlaceTypeDeclaration
Swift
staticletlocalGovernmentOffice:PlaceTypeDeclaration
Swift
staticletlocality:PlaceTypeDeclaration
Swift
staticletlocksmith:PlaceTypeDeclaration
Swift
staticletlodging:PlaceTypeDeclaration
Swift
staticletmealDelivery:PlaceTypeDeclaration
Swift
staticletmealTakeaway:PlaceTypeDeclaration
Swift
staticletmosque:PlaceTypeDeclaration
Swift
staticletmovieRental:PlaceTypeDeclaration
Swift
staticletmovieTheater:PlaceTypeDeclaration
Swift
staticletmovingCompany:PlaceTypeDeclaration
Swift
staticletmuseum:PlaceTypeDeclaration
Swift
staticletnaturalFeature:PlaceTypeDeclaration
Swift
staticletneighborhood:PlaceTypeDeclaration
Swift
staticletnightClub:PlaceTypeDeclaration
Swift
staticletpainter:PlaceTypeDeclaration
Swift
staticletpark:PlaceTypeDeclaration
Swift
staticletparking:PlaceTypeDeclaration
Swift
staticletpetStore:PlaceTypeDeclaration
Swift
staticletpharmacy:PlaceTypeDeclaration
Swift
staticletphysiotherapist:PlaceTypeDeclaration
Swift
staticletplaceOfWorship:PlaceTypeDeclaration
Swift
staticletplumber:PlaceTypeDeclaration
Swift
staticletpointOfInterest:PlaceTypeDeclaration
Swift
staticletpolice:PlaceTypeDeclaration
Swift
staticletpolitical:PlaceTypeDeclaration
Swift
staticletpostBox:PlaceTypeDeclaration
Swift
staticletpostOffice:PlaceTypeDeclaration
Swift
staticletpostalCode:PlaceTypeDeclaration
Swift
staticletpostalCodePrefix:PlaceTypeDeclaration
Swift
staticletpostalCodeSuffix:PlaceTypeDeclaration
Swift
staticletpostalTown:PlaceTypeDeclaration
Swift
staticletpremise:PlaceTypeDeclaration
Swift
staticletprimarySchool:PlaceTypeThe corresponding value of the raw type.
A new instance initialized with
rawValuewill 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:StringDeclaration
Swift
staticletrealEstateAgency:PlaceTypeDeclaration
Swift
staticletregions:PlaceTypeDeclaration
Swift
staticletrestaurant:PlaceTypeDeclaration
Swift
staticletroofingContractor:PlaceTypeDeclaration
Swift
staticletroom:PlaceTypeDeclaration
Swift
staticletroute:PlaceTypeDeclaration
Swift
staticletrvPark:PlaceTypeDeclaration
Swift
staticletschool:PlaceTypeDeclaration
Swift
staticletsecondarySchool:PlaceTypeDeclaration
Swift
staticletshoeStore:PlaceTypeDeclaration
Swift
staticletshoppingMall:PlaceTypeDeclaration
Swift
staticletspa:PlaceTypeDeclaration
Swift
staticletstadium:PlaceTypeDeclaration
Swift
staticletstorage:PlaceTypeDeclaration
Swift
staticletstore:PlaceTypeDeclaration
Swift
staticletstreetAddress:PlaceTypeDeclaration
Swift
staticletstreetNumber:PlaceTypeDeclaration
Swift
staticletsublocality:PlaceTypeDeclaration
Swift
staticletsublocalityLevel1:PlaceTypeDeclaration
Swift
staticletsublocalityLevel2:PlaceTypeDeclaration
Swift
staticletsublocalityLevel3:PlaceTypeDeclaration
Swift
staticletsublocalityLevel4:PlaceTypeDeclaration
Swift
staticletsublocalityLevel5:PlaceTypeDeclaration
Swift
staticletsubpremise:PlaceTypeDeclaration
Swift
staticletsubwayStation:PlaceTypeDeclaration
Swift
staticletsupermarket:PlaceTypeDeclaration
Swift
staticletsynagogue:PlaceTypeDeclaration
Swift
staticlettaxiStand:PlaceTypeDeclaration
Swift
staticlettouristAttraction:PlaceTypeDeclaration
Swift
staticlettownSquare:PlaceTypeDeclaration
Swift
staticlettrainStation:PlaceTypeDeclaration
Swift
staticlettransitStation:PlaceTypeDeclaration
Swift
staticlettravelAgency:PlaceTypeDeclaration
Swift
staticletuniversity:PlaceTypeDeclaration
Swift
staticletveterinaryCare:PlaceTypeDeclaration
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.