Skip to content

Commit

Permalink
Add pricing_plan_id and vehicle_equipment
Browse files Browse the repository at this point in the history
  • Loading branch information
richfab committed Feb 11, 2025
1 parent f171f6d commit dc416ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gbfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,8 @@ Field Name | REQUIRED | Type | Defines
`vehicles[].vehicle_id` | REQUIRED | ID | Identifier of a vehicle. The `vehicle_id` identifier MUST be rotated to a random string after each trip to protect user privacy *(as of v2.0)*. Use of persistent vehicle IDs poses a threat to user privacy. The `vehicle_id` identifier SHOULD only be rotated once per trip.<br/><br/>The `vehicle_id` SHOULD be the same as in [vehicle_status.json](#vehicle_statusjson) if the file has been defined and the vehicle is currently available.
`vehicles[].vehicle_type_id` | REQUIRED | ID | Unique identifier of a vehicle type as defined in [vehicle_types.json](#vehicle_typesjson).
`vehicles[].home_station_id` | OPTIONAL | ID | The `station_id` of the station this vehicle must be returned to as defined in [station_information.json](#station_informationjson).
`vehicles[].pricing_plan_id` | OPTIONAL | ID | The `plan_id` of the pricing plan this vehicle is eligible for as described in [system_pricing_plans.json](#system_pricing_plansjson). If this field is defined it supersedes `default_pricing_plan_id` in `vehicle_types.json`. This field SHOULD be used to override `default_pricing_plan_id` in `vehicle_types.json` to define pricing plans for individual vehicles when necessary.
`vehicles[].vehicle_equipment` | OPTIONAL | Array&lt;String&gt; | List of vehicle equipment provided by the operator in addition to the accessories already provided in the vehicle (field `vehicle_accessories` of `vehicle_types.json`) but subject to more frequent updates.<br/><br/>Current valid values are:<ul><li>`child_seat_a` _(Baby seat ("0-10kg"))_</li><li>`child_seat_b` _(Seat or seat extension for small children ("9-18 kg"))_</li><li>`child_seat_c` _(Seat or seat extension for older children ("15-36 kg"))_</li><li>`winter_tires` _(Vehicle has tires for winter weather)_</li><li>`snow_chains`</li></ul>
`vehicles[].availabilities[]` | REQUIRED | Array&lt;Object&gt; | Array of time slots during which the specified vehicle is available.
`vehicles[].availabilities[].from` | REQUIRED | Datetime | Start date and time of available time slot.
`vehicles[].availabilities[].until` | OPTIONAL | Datetime | End date and time of available time slot. If this field is empty, it means that the vehicle is available all the time from the date in the `from` field.
Expand All @@ -1168,6 +1170,10 @@ Field Name | REQUIRED | Type | Defines
"vehicle_id": "45bd3fb7-a2d5-4def-9de1-c645844ba962",
"vehicle_type_id": "abc123",
"home_station_id": "station1",
"pricing_plan_id": "plan3",
"vehicle_equipment": [
"child_seat_a"
],
"availabilities": [
{
"from": "2024-12-24T08:15Z",
Expand Down

0 comments on commit dc416ec

Please sign in to comment.