POI
public struct POI : Hashable
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
namesThe name of the POI.
phonesThe phone number of the POI.
emailsAn array of POI emails
brandsA list of brands to which the POI belongs.
urlsThe URLs of the POI.
categoriesA list of categories to which the POI belongs.
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.
-
init(names:phones: emails: brands: urls: categories: openingHours: chargingPark: fuelTypes: vehicleTypes: timeZone: ) Creates a new
POI.Note
This initializer differs in the parameter
vehicleTypesfrom the initializer: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 )Parameters
namesThe name of the POI.
phonesThe phone number of the POI.
emailsAn array of POI emails
brandsA list of brands to which the POI belongs.
urlsThe URLs of the POI.
categoriesA list of categories to which the POI belongs.
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.
vehicleTypesA list of vehicle types supported by a POI, for example a gas station.
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 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] -
A list of URLs 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.
Declaration
Swift
public let vehicleTypes: [VehicleType]
TomTom SDK for iOS (0.53.1)
POI