ParkingDetailProvider

public protocol ParkingDetailProvider

Defines Parking Detail APIs that complement basic search.

  • The Parking Availability endpoint provides information about the current availability status of parking sites.

    Declaration

    Swift

    func requestParkingAvailability(
        options: ParkingAvailabilityOptions,
        completion: @escaping (Result<ParkingAvailabilityResponse, Error>) -> ()
    )

    Parameters

    options

    Information related to parking availability.

    completion

    The completion closure is called after the response to the request has been processed. If no errors occurred, ParkingAvailabilityResponse contains an array parking availability statuses.

  • The Parking Price endpoint returns information about pricing of a parking site.

    Important

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

    Declaration

    Swift

    func requestParkingPrice(
        options: ParkingPriceOptions,
        completion: @escaping (Result<ParkingPriceResponse, Error>) -> ()
    )

    Parameters

    options

    Information related to parking sites and pricing.

    completion

    The completion closure is called after the response to the request has been processed. If no errors occurred, ParkingPriceResponse contains a detailed pricing scheme and calculated price.