PlaceCategory
public class PlaceCategory
extension PlaceCategory: NativeBase
extension PlaceCategory: Hashable
Represents a category of place with different levels of granularity. This class also defines a set of most commonly used categories.
-
Creates a new instance of this class.
Declaration
Swift
public init(id: String)Parameters
idPlace category ID. The HERE places category system provides three levels of granularity:
- Level 1 represents high level groupings, such as “Eat and drink”. Their IDs take the form “xxx”, for example “100”.
- Level 2 represents logical sub-groups or domains, such as “Eat and Drink / Restaurant”. Their IDs take the form “xxx-xxxx”, for example “100-1000”.
- Level 3 provides the greatest level of granularity about place categorization,
such as “Eat and Drink / Restaurant / Casual Dining”.
Their IDs take the form “xxx-xxxx-xxxx”, for example “100-1000-0001”.
The category ID can be provided as one of the predefined values, such as
PlaceCategory.eatAndDrinkRestaurantor as a literal string that matches one of the category IDs defined by the HERE Search service. Only level 1 and 2 category IDs are predefined. The complete list of supported category IDs, including level 3, can be found online: https://www.here.com/docs/bundle/geocoding-and-search-api-v7-api-reference/page/index.html.
-
Top level category for places where food or beverages are prepared or served.
Declaration
Swift
public static let eatAndDrink: String -
An establishment that prepares and serves refreshments and prepared meals.
Declaration
Swift
public static let eatAndDrinkRestaurant: String -
An establishment that sells drinks, such as coffee and tea, as well as refreshments.
Declaration
Swift
public static let eatAndDrinkCoffeeTea: String -
Top level category for places commonly associated with entertainment, such as bars, cinemas, theatres, casinos and night clubs.
Declaration
Swift
public static let goingOutEntertainment: String -
An establishment that provides evening entertainment and usually serves alcoholic beverages.
Declaration
Swift
public static let goingOutNightlife: String -
An establishment that shows movies through screen projection.
Declaration
Swift
public static let goingOutCinema: String -
An establishment where various types of performing arts are presented.
Declaration
Swift
public static let goingOutTheatreMusicCulture: String -
An establishment that provides gambling entertainment.
Declaration
Swift
public static let goingOutGamblingLotteryBetting: String -
Top level category for places of special interest, such as common tourist attractions, museums and places of worship.
Declaration
Swift
public static let sightsAndMuseums: String -
A designated area of special interest to tourists.
Declaration
Swift
@available(*, deprecated, message: "Will be removed in v4.26.0. Please use SIGHTS_LANDMARK_ATTRACTION instead.") public static let sightsLandmarkAttaction: String -
A designated area of special interest to tourists.
Declaration
Swift
public static let sightsLandmarkAttraction: String -
An establishment dedicated to the preservation and exhibition of artistic, historical, or scientific artifacts.
Declaration
Swift
public static let sightsMuseum: String -
An establishment special religious significance or where religious services are held.
Declaration
Swift
public static let sightsReligiousPlace: String -
Top level category for natural or man-made areas of regional importance, such as bodies of water, mountains, forested areas and other geographic areas.
Declaration
Swift
public static let naturalAndGeographical: String -
A natural and geographical feature of the earth’s surface that is covered with water, such as a lake, river, stream or ocean.
Declaration
Swift
public static let naturalAndGeographicalBodyOfWater: String -
A natural and geographical feature that is higher than the surrounding land.
Declaration
Swift
public static let naturalAndGeographicalMountainOrHill: String -
A natural or artificial feature that is below sea level.
Declaration
Swift
public static let naturalAndGeographicalUnderseaFeature: String -
A dense growth of trees, open uncultivated land or other large masses of vegetation.
Declaration
Swift
public static let naturalAndGeographicalForestHealthOtherVegetation: String -
A feature not classified as a Body of Water, Mountain or Hill, Undersea Feature, or Forest, Heath or Other Vegetation.
Declaration
Swift
public static let naturalAndGeographicalOther: String -
Top level category for places commonly associated with pedestrian and cargo transport facilities, including airports, rail yards and seaports.
Declaration
Swift
public static let transport: String -
A designated area that serves various aspects of aviation related sports, including gliders, recreational aircraft and model airplanes.
Declaration
Swift
public static let transportAirport: String -
A facility for travelers who are travelling between stops on public transport.
Declaration
Swift
public static let transportPublic: String -
A facility that handles some aspect of the transportation of cargo freight.
Declaration
Swift
public static let transportCargo: String -
An establishment along a motorway (controlled access road) that provides restrooms and parking.
Declaration
Swift
public static let transportRestArea: String -
Top level category for places offering lodging accommodations, dwellings or similar living quarters to travellers, such as hotels, motels, resorts, cruise ships and campgrounds.
Declaration
Swift
public static let accommodation: String -
A business that provides lodging or temporary living quarters.
Declaration
Swift
public static let accommodationHotelMotel: String -
A business that provides lodging to the public generally without room service.
Declaration
Swift
public static let accommodationLodging: String -
Top level category for places that are designated for sports, recreation, parking, beaches and other leisure and outdoor activities.
Declaration
Swift
public static let leisureAndOutdoor: String -
Public land preserved and maintained for recreational use.
Declaration
Swift
public static let leisureOutdoorRecreation: String -
A park that contains rides and/or other entertainment which may be based on a central theme.
Declaration
Swift
public static let leisureOther: String -
Top level category for places where consumer goods are commonly sold, such as clothing stores, grocery stores, hardware stores and other types of shopping centers.
Declaration
Swift
public static let shopping: String -
An establishment that sells groceries, candy, toiletries, soft drinks, tobacco products, newspapers and other products.
Declaration
Swift
public static let shoppingConvenienceStore: String -
A complex of businesses that are co-located and share common services.
Declaration
Swift
public static let shoppingMallComplex: String -
A business that sells a wide variety of merchandise that is organized by product or service departments.
Declaration
Swift
public static let shoppingDepartmentStore: String -
A business that sells specialty products of a particular type of food or beverage.
Declaration
Swift
public static let shoppingFoodAndDrink: String -
A business that sells medications, toiletry items and other retail cosmetics.
Declaration
Swift
public static let shoppingDrugstorePharmacy: String -
A business that sells consumer electronics and electronic entertainment equipment.
Declaration
Swift
public static let shoppingElectronics: String -
A business that sells crafts, gardening, remodeling, or decorating items for the home.
Declaration
Swift
public static let shoppingHardwareHouseGarden: String -
A business that sells books, magazines and other reading material.
Declaration
Swift
public static let shoppingBookstore: String -
A business that sells apparel items, garments or fashion accessories for men, women, and children.
Declaration
Swift
public static let shoppingClothingAndAccesories: String -
A business that sells a variety of products targeted to consumers.
Declaration
Swift
public static let shoppingConsumerGoods: String -
A business that provides hair styling and personal appearance services. Places in this category may also sell hair products and other related cosmetic items.
Declaration
Swift
public static let shoppingHairAndBeauty: String -
Top level category for places that provide professional services to other businesses, such as printing, photocopying, graphic design, marketing, advertising and other general business services.
Declaration
Swift
public static let businessAndServices: String -
Businesses that specialize in the maintenance, lending, exchange, or issuance of money.
Declaration
Swift
public static let businessAndServicesBanking: String -
A computer terminal that allows bank customers to deposit, withdraw, or transfer funds without the assistance of a bank teller.
Declaration
Swift
public static let businessAndServicesAtm: String -
Businesses that provide money related services.
Declaration
Swift
public static let businessAndServicesMoneyCash: String -
Businesses that provide communication services.
Declaration
Swift
public static let businessAndServicesCommunicationMedia: String -
Businesses that provide a service or product for use by other businesses.
Declaration
Swift
public static let businessAndCommercialServices: String -
Businesses that employ people in and around the city in which it is located.
Declaration
Swift
public static let businessAndServicesIndustry: String -
Municipal emergency services.
Declaration
Swift
public static let businessAndServicesPoliceFireEmergency: String -
An organization that provides consumer services for a variety of products for used by the public.
Declaration
Swift
public static let businessAndConsumerServices: String -
An office or station that receives, sorts, dispatches and delivers mail to a specific area or region.
Declaration
Swift
public static let businessAndServicesPostOffice: String -
Businesses that provide a variety of information for visiting tourists, such as event schedules, lodging/accommodations, restaurants, attractions and more.
Declaration
Swift
public static let businessAndServicesTouristInformation: String -
Businesses that sell fuel for vehicles, such as petrol, electricity etc.
Declaration
Swift
public static let businessAndServicesFuelingStation: String -
Businesses that sell fuel, oil, and other motoring supplies.
Declaration
Swift
public static let businessAndServicesPetrolGasolineStation: String -
Businesses that provide recharging services for electric vehicles.
Declaration
Swift
public static let businessAndServicesEvChargingStation: String -
Businesses that sell new automobiles and motorcycles.
Declaration
Swift
public static let businessAndServicesCarDealerSales: String -
Businesses that provide automotive repair services.
Declaration
Swift
public static let businessAndServicesCarRepairServices: String -
Businesses that rent or lease automobiles.
Declaration
Swift
public static let businessAndServicesCarRental: String -
Business that sell or service trucks and tractor trailers.
Declaration
Swift
public static let businessAndServicesTruckSemiDealer: String -
Top level category for places associated with specialized facilities, such as sports venues, government buildings, health care centers and other types of facilities.
Declaration
Swift
public static let facilities: String -
Facilities that include dental offices, hospitals, nursing homes and other health care-related services.
Declaration
Swift
public static let facilitiesHospitalHealthcare: String -
A Place where government services are provided.
Declaration
Swift
public static let facilitiesGovernmentCommunitty: String -
Facilities that are used for educational purposes including training, coaching, universities and more.
Declaration
Swift
public static let facilitiesEducation: String -
Educational facilities that include primary schools, secondary schools and more.
Declaration
Swift
public static let facilitiesSchool: String -
Facilities that offer books, periodicals, audio, video and other material for public use.
Declaration
Swift
public static let facilitiesLibrary: String -
An area or facility used for the hosting of fairs and conventions.
Declaration
Swift
public static let facilitiesEventSpaces: String -
Area or building used for parking cars.
Declaration
Swift
public static let facilitiesParking: String -
A facility used for individual and team sports including recreational sports.
Declaration
Swift
public static let facilitiesVenueSports: String -
Facilities with miscellaneous uses such as Clubhouses, Offices, and Registration Offices.
Declaration
Swift
public static let facilitiesOther: String -
Top level category for places that are owned, operated or managed by municipalities, such as cities, towns, villages, boroughs and shires.
Declaration
Swift
public static let areasAndBuildings: String -
Outdoor areas or complexes with designations for specific businesses or interests.
Declaration
Swift
public static let areasAndBuildingsOutdoorComplex: String -
Areas and buildings designated for residential or office use.
Declaration
Swift
public static let areasAndBuildingsResidentalOffice: String -
Place category ID.
Declaration
Swift
public var id: String { get } -
Localised place category name. It is available only when when
PlaceCategoryis obtained fromPlace. That means that whenPlaceCategoryis constructed directly by the client,nameis alwaysnil.Declaration
Swift
public var name: String? { get }