POI
public struct POI : Hashable
Point of Interest information for a search result.
A list of brands to which the POI belongs.
Declaration
Swift
public let brands: [Brand]
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 emails of the POI.
Declaration
Swift
public let emails: [String]
A list of fuel types a gas station supports.
Declaration
Swift
public let fuelTypes: [FuelType]
init(names:phones:emails:brands:urls:categories:openingHours:chargingPark:fuelTypes:vehicleTypes:timeZone:poiID:)
Creates a new POI
.
Note
This initializer differs in the parameter poiID
from the initialiazer:
POI/init(names:phones:emails:brands:urls:categories:openingHours:chargingPark:fuelTypes:timeZone:)
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,
poiID: POIID? = 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. |
poiID
|
POI identifier required to fetch POI details. |
The name of the POI.
Declaration
Swift
public let names: [String]
The opening hours of the POI in local time zone.
Declaration
Swift
public let openingHours: OpeningHours?
The phone number of the POI.
Declaration
Swift
public let phones: [String]
POI identifier required to fetch POI details.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let poiID: POIID?
The time zone of the POI location.
Declaration
Swift
public let timeZone: TimeZone?
A list of URLs of the POI.
Declaration
Swift
public let urls: [URL]
A list of vehicle types supported by a POI, for example a gas station.
Declaration
Swift
public let vehicleTypes: [VehicleType]