ParkingPriceOptions

public struct ParkingPriceOptions

Parameters for parking price information request.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Construct a ParkingPriceOptions.

    Declaration

    Swift

    public init(
        parkingDetailID: ParkingDetailID,
        startTime: Date = Date(),
        duration: Measurement<UnitDuration> = .init(value: 60, unit: .minutes)
    )

    Parameters

    parkingDetailID

    The identifier of the parking detail data source. You can get this identifier from the search result. The identifier is in the SearchResultID of the SearchResult, labeled parkingDetailID.

    startTime

    Starting time of parking. Used for parking price calculation. Defaults to current time.

    duration

    Duration of parking. Used for parking price calculation. Defaults to 60 minutes.

Public

  • The identifier of the parking detail data source. You can get this identifier from the search result. The identifier is in the SearchResultID of the SearchResult, labeled parkingDetailID.

    Declaration

    Swift

    public var parkingDetailID: ParkingDetailID
  • Starting time of parking. Used for parking price calculation. Defaults to current time.

    Declaration

    Swift

    public var startTime: Date
  • Duration of parking. Used for parking price calculation. Defaults to 60 minutes.

    Declaration

    Swift

    public var duration: Measurement<UnitDuration>