ParkingAvailabilityStatus

public struct ParkingAvailabilityStatus

Availability state of a parking place.

  • Prediction on the availability in the parking.

    Declaration

    Swift

    public let availabilityTrend: ParkingAvailabilityTrend?
  • Creates a new ParkingAvailabilityCurrentStatus from with parking availability data

    Declaration

    Swift

    public init(
        numberOfEmptySpots: Int? = nil,
        updatedAt: Date,
        isAvailable: Bool,
        availabilityTrend: ParkingAvailabilityTrend? = nil
    )
  • Indicates if there are available parking spots.

    Declaration

    Swift

    public let isAvailable: Bool
  • Number of available parking spots.

    Declaration

    Swift

    public let numberOfEmptySpots: Int?
  • The exact time when this parking data was last updated.

    Declaration

    Swift

    public let updatedAt: Date