Station

data class Station(val stationId: String, val name: String, val shortName: String? = null, val lat: Double, val lon: Double, val address: String? = null, val crossStreet: String? = null, val regionId: String? = null, val postalCode: String? = null, val rentalMethods: List<RentalMethod>? = null, val capacity: Int? = null, val rentalUris: RentalUris? = null)(source)

Information about a single station.

Constructors

Link copied to clipboard
constructor(stationId: String, name: String, shortName: String? = null, lat: Double, lon: Double, address: String? = null, crossStreet: String? = null, regionId: String? = null, postalCode: String? = null, rentalMethods: List<RentalMethod>? = null, capacity: Int? = null, rentalUris: RentalUris? = null)

Properties

Link copied to clipboard

Address (street number and name) where station is located.

Link copied to clipboard

Number of total docking points installed at this station, both available and unavailable.

Link copied to clipboard
@SerialName(value = "cross_street")
val crossStreet: String?

Cross street or landmark where the station is located.

Link copied to clipboard
val lat: Double

Latitude of the station in decimal degrees.

Link copied to clipboard
val lon: Double

Longitude of the station in decimal degrees.

Link copied to clipboard

The public name of the station for display in maps, digital signage, and other text applications.

Link copied to clipboard
@SerialName(value = "post_code")
val postalCode: String?

Postal code where the station is located.

Link copied to clipboard
@SerialName(value = "region_id")
val regionId: String?

Identifier of the region where station is located. See system_regions.json.

Link copied to clipboard
@SerialName(value = "rental_methods")
val rentalMethods: List<RentalMethod>?

Payment methods accepted at this station.

Link copied to clipboard
@SerialName(value = "rental_uris")
val rentalUris: RentalUris?

Contains rental URIs for Android, iOS, and web.

Link copied to clipboard
@SerialName(value = "short_name")
val shortName: String?

Short name or other type of identifier.

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

Identifier of a station.