POI
public struct POI
Point of Interest information for a search result.
Important
This is a Public Preview API. It may be changed or removed at any time.-
init(names:phones: emails: brands: urls: categories: entryPoints: openingHours: chargingPark: fuelTypes: timeZone: ) Creates a new
POIDeclaration
Swift
public init( names: [String], phones: [String] = [], emails: [String] = [], brands: [Brand] = [], urls: [URL] = [], categories: [POICategoryID] = [], entryPoints: [EntryPoint] = [], openingHours: OpeningHours? = nil, chargingPark: ChargingPark? = nil, fuelTypes: [FuelType] = [], timeZone: TimeZone? = nil )Parameters
namesThe name of the POI.
phonesThe phone number of the POI.
emailsAn array of POI emails
brandsA list of brands the POI belongs to.
urlsThe URLs of the POI.
categoriesA list of categories the POI belongs to.
entryPointsA list of entrances to the POI.
openingHoursThe opening hours of the POI in its local time zone.
chargingParkDescribes available charging options for the EV vehicle.
fuelTypesA list of fuel types a gas station supports.
timeZoneThe time zone of the POI location.
-
The name of the POI.
Declaration
Swift
public let names: [String] -
The phone number of the POI.
Declaration
Swift
public let phones: [String] -
The emails of the POI.
Declaration
Swift
public let emails: [String] -
A list of brands the POI belongs to.
Declaration
Swift
public let brands: [Brand] -
A list of fuel types a gas station supports.
Declaration
Swift
public let fuelTypes: [FuelType] -
The URL of the POI.
Declaration
Swift
public let urls: [URL] -
A list of categories the POI belongs to.
Declaration
Swift
public let categories: [POICategoryID] -
A list of entrances to the POI.
Declaration
Swift
public var entryPoints: [EntryPoint] -
Describes available charging options for the EV vehicle.
Declaration
Swift
public var chargingPark: ChargingPark? -
The opening hours of the POI in local time zone.
Declaration
Swift
public let openingHours: OpeningHours? -
The time zone of the POI location.
Declaration
Swift
public let timeZone: TimeZone?
POI Structure Reference