POI
public struct POI
Point of Interest information for a search result.
-
Creates a new
POI
.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init( names: [String], phones: [String] = [], emails: [String] = [], brands: [Brand] = [], urls: [URL] = [], categories: [POICategoryID] = [], openingHours: OpeningHours? = nil, chargingPark: ChargingPark? = nil, fuelTypes: [FuelType] = [], timeZone: TimeZone? = nil )
Parameters
names
The name of the POI.
phones
The phone number of the POI.
emails
An array of POI emails
brands
A list of brands to which the POI belongs.
urls
The URLs of the POI.
categories
A list of categories to which the POI belongs.
openingHours
The opening hours of the POI in its local time zone.
chargingPark
Describes available charging options for the EV vehicle.
fuelTypes
A list of fuel types a gas station supports.
timeZone
The time zone of the POI location.
-
init(names:
phones: emails: brands: urls: categories: openingHours: chargingPark: fuelTypes: vehicleTypes: timeZone: ) Creates a new
POI
.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init( names: [String], phones: [String] = [], emails: [String] = [], brands: [Brand] = [], urls: [URL] = [], categories: [POICategoryID] = [], openingHours: OpeningHours? = nil, chargingPark: ChargingPark? = nil, fuelTypes: [FuelType] = [], vehicleTypes: [VehicleType] = [], timeZone: TimeZone? = nil )
Parameters
names
The name of the POI.
phones
The phone number of the POI.
emails
An array of POI emails
brands
A list of brands to which the POI belongs.
urls
The URLs of the POI.
categories
A list of categories to which the POI belongs.
openingHours
The opening hours of the POI in its local time zone.
chargingPark
Describes available charging options for the EV vehicle.
fuelTypes
A list of fuel types a gas station supports.
vehicleTypes
A list of vehicle types supported by a POI, for example a gas station.
timeZone
The 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 to which the POI belongs.
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 to which the POI belongs.
Declaration
Swift
public let categories: [POICategoryID]
-
Describes available charging options for the EV vehicle.
Important
This is a Public Preview API. It may be changed or removed at any time.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?
-
A list of vehicle types supported by a POI, for example a gas station.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var vehicleTypes: [VehicleType] { get }