Represents a place where a rental vehicle can be rented from, or dropped off at. Currently, there are two implementing classes, VehicleRentalStation which represents a physical station, and VehicleRentalVehicle, which represents a free floating vehicle, which is not bound to a station.
name | data type | constraints | description |
---|---|---|---|
spacesAvailable | number | required | How many parking spaces are currently available for dropping off a vehicle at the station, 0 for floating vehicles |
longitude | number | required | |
keepingVehicleRentalAtDestinationAllowed | boolean | required | Is it possible to arrive at the destination with a rented bicycle, without dropping it off |
rentalUris | VehicleRentalStationUris | Deep links for this rental station or individual vehicle | |
allowPickup | boolean | required | Can a vehicle be rented here |
capacity | number | Number of total docking points installed at this station, both available and unavailable. | |
vehiclesAvailable | number | required | How many vehicles are currently available for rental at the station |
id | FeedScopedId | Get the id for the place, which is globally unique | |
allowDropoff | boolean | required | Does the place allow dropping off vehicles |
floatingVehicle | boolean | required | Is the vehicle to be rented free-floating |
allowOverloading | boolean | required | Does the place allow overloading (ignore available spaces) |
network | string | Get the id of the vehicle rental system | |
stationId | string | Get the system-internal id for the place | |
name | I18NString | Get the name of the place | |
carStation | boolean | required | Should the search be continued with CAR mode after renting a vehicle |
realTimeData | boolean | required | Whether this station has real-time data available currently. If no real-time data, users should take bikesAvailable/spacesAvailable with a pinch of salt, as they are always the total capacity divided by two. |
latitude | number | required |
Example
{ "spacesAvailable" : 12345, "longitude" : 12345.0, "keepingVehicleRentalAtDestinationAllowed" : true, "rentalUris" : { "android" : "...", "ios" : "...", "web" : "..." }, "allowPickup" : true, "capacity" : 12345, "vehiclesAvailable" : 12345, "id" : { "feedId" : "...", "id" : "..." }, "allowDropoff" : true, "floatingVehicle" : true, "allowOverloading" : true, "network" : "...", "stationId" : "...", "name" : { }, "carStation" : true, "realTimeData" : true, "latitude" : 12345.0 }