StationStatusEntry

data class StationStatusEntry(val stationId: String, val numBikesAvailable: Int, val vehicleTypesAvailable: List<VehicleTypeAvailability>? = null, val numBikesDisabled: Int? = null, val numDocksAvailable: Int? = null, val vehicleDocksAvailable: List<VehicleDockAvailability>? = null, val numDocksDisabled: Int? = null, val isInstalled: Boolean, val isRenting: Boolean, val isReturning: Boolean, val lastReported: EpochSeconds)(source)

Real-time status information for a single station.

Constructors

Link copied to clipboard
constructor(stationId: String, numBikesAvailable: Int, vehicleTypesAvailable: List<VehicleTypeAvailability>? = null, numBikesDisabled: Int? = null, numDocksAvailable: Int? = null, vehicleDocksAvailable: List<VehicleDockAvailability>? = null, numDocksDisabled: Int? = null, isInstalled: Boolean, isRenting: Boolean, isReturning: Boolean, lastReported: EpochSeconds)

Properties

Link copied to clipboard
@SerialName(value = "is_installed")
val isInstalled: Boolean

Is the station currently on the street?

Link copied to clipboard
@SerialName(value = "is_renting")
val isRenting: Boolean

Is the station currently renting vehicles?

Link copied to clipboard
@SerialName(value = "is_returning")
val isReturning: Boolean

Is the station accepting vehicle returns?

Link copied to clipboard
@SerialName(value = "last_reported")
val lastReported: EpochSeconds

The last time this station reported its status to the operator's backend.

Link copied to clipboard
@SerialName(value = "num_bikes_available")
val numBikesAvailable: Int

Number of functional vehicles physically at the station that may be offered for rental.

Link copied to clipboard
@SerialName(value = "num_bikes_disabled")
val numBikesDisabled: Int?

Number of disabled vehicles of any type at the station.

Link copied to clipboard
@SerialName(value = "num_docks_available")
val numDocksAvailable: Int?

Number of functional docks physically at the station that are able to accept vehicles for return.

Link copied to clipboard
@SerialName(value = "num_docks_disabled")
val numDocksDisabled: Int?

Number of disabled dock points at the station.

Link copied to clipboard
@SerialName(value = "station_id")
val stationId: String

Identifier of a station. See station_information.json.

Link copied to clipboard
@SerialName(value = "vehicle_docks_available")
val vehicleDocksAvailable: List<VehicleDockAvailability>?

Array of objects used to model the number of docks available for certain vehicle types.

Link copied to clipboard
@SerialName(value = "vehicle_types_available")
val vehicleTypesAvailable: List<VehicleTypeAvailability>?

Array of objects used to model the total number of each defined vehicle type available at a station.