SearchResultID

public struct SearchResultID

A structure enclosing related data IDs.

Lifecycle

  • Creates a new SearchResultID.

    Declaration

    Swift

    public init(
        id: String?,
        source: Source,
        fuelPriceDataSourceID: FuelPriceID? = nil,
        evConnectorAvailabilityDataSourceID: EVChargingAvailabilityID? = nil,
        parkingDetailID: ParkingDetailID? = nil,
        geometryDataSourceID: String? = nil
    )

    Parameters

    id

    Identifier of the result.

    source

    Source of the result. Can be online or onboard.

    fuelPriceDataSourceID

    Optional source identifier which can be used for retrieving fuel price.

    evConnectorAvailabilityDataSourceID

    Optional source identifier which can be used for retrieving availability of Electric Vehicle (EV) connectors

    parkingDetailID

    Optional source identifier which can be used for retrieving availability of parking spots

    geometryDataSourceID

    Optional source identifier which can be used for retrieving geometries for search results.

Public

  • id

    Identifier of the result. Available to all online search results and onboard POI search results. Required to construct POIID for requestPOIDetails API.

    Declaration

    Swift

    public let id: String?
  • Source of the result. Can be online or onboard. Required to construct POIID for requestPOIDetails API.

    Declaration

    Swift

    public let source: Source
  • Optional source identifier which can be used for retrieving fuel price. This is applicable for fuel stations only.

    Declaration

    Swift

    public let fuelPriceDataSourceID: FuelPriceID?
  • Optional source identifier which can be used for retrieving availability of Electric Vehicle (EV) connectors. This is applicable for EV stations only.

    Declaration

    Swift

    public let evConnectorAvailabilityDataSourceID: EVChargingAvailabilityID?
  • Optional source identifier which can be used for retrieving availability of parking spots. This is applicable for parking stations only.

    Declaration

    Swift

    public let parkingDetailID: ParkingDetailID?
  • Optional source identifier which can be used for retrieving geometries for search results.

    Declaration

    Swift

    public let geometryDataSourceID: String?