ParkingAvailabilityStatus
public struct ParkingAvailabilityStatus
Availability state of a parking place.
-
Creates a new
ParkingAvailabilityCurrentStatus
from with parking availability dataDeclaration
Swift
public init( numberOfEmptySpots: Int? = nil, updatedAt: Date, isAvailable: Bool, availabilityTrend: ParkingAvailabilityTrend? = nil )
-
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
-
Indicates if there are available parking spots.
Declaration
Swift
public let isAvailable: Bool
-
Prediction on the availability in the parking.
Declaration
Swift
public let availabilityTrend: ParkingAvailabilityTrend?