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.

Lifecycle

  • Creates a new POI

    Declaration

    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

    names

    The name of the POI.

    phones

    The phone number of the POI.

    emails

    An array of POI emails

    brands

    A list of brands the POI belongs to.

    urls

    The URLs of the POI.

    categories

    A list of categories the POI belongs to.

    entryPoints

    A list of entrances to the POI.

    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.

Public

  • 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?