From 5c07bdf7b947e7a92e7560666ec8b2b61201a23b Mon Sep 17 00:00:00 2001 From: Fabien Richard-Allouard Date: Thu, 2 Nov 2023 15:12:49 -0400 Subject: [PATCH] Make vehicle_type_ids plural in geofencing_zones (#542) * Make vehicle_type_ids plural in geofencing_zones --- gbfs.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gbfs.md b/gbfs.md index 1230e1d2..63da3183 100644 --- a/gbfs.md +++ b/gbfs.md @@ -1340,7 +1340,7 @@ A `Rule` object defines the set of restrictions in place for a particular zone. Field Name | REQUIRED | Type | Defines ---|---|---|--- -`vehicle_type_id` | OPTIONAL | Array | Array of IDs of vehicle types for which any restrictions SHOULD be applied (see vehicle type definitions in `vehicle_types.json`). If vehicle type IDs are not specified, then restrictions apply to all vehicle types. +`vehicle_type_ids`
*(as of v3.0-RC2)* | OPTIONAL | Array | Array of IDs of vehicle types for which any restrictions SHOULD be applied (see vehicle type definitions in `vehicle_types.json`). If vehicle type IDs are not specified, then restrictions apply to all vehicle types. `ride_start_allowed` | REQUIRED | Boolean | Is the ride allowed to start in this zone?

`true` - Ride can start in this zone.
`false` - Ride cannot start in this zone. `ride_end_allowed` | REQUIRED | Boolean | Is the ride allowed to end in this zone?

`true` - Ride can end in this zone.
`false` - Ride cannot end in this zone. `ride_through_allowed` | REQUIRED | Boolean | Is the ride allowed to travel through this zone?

`true` - Ride can travel through this zone.
`false` - Ride cannot travel through this zone. @@ -1349,7 +1349,7 @@ Field Name | REQUIRED | Type | Defines #### Geofencing Rule Precedence -Geofencing [Rule](#geofencing-rule-object) objects are specified within arrays for the `rules` and `global_rules` fields of `geofencing_zones.json` to allow for different restrictions for different vehicle types. When multiple rules in the same array apply to a particular vehicle type, per the semantics of the `vehicle_type_id` field, then the earlier rule (in order of the JSON file) takes precedence for that vehicle type. +Geofencing [Rule](#geofencing-rule-object) objects are specified within arrays for the `rules` and `global_rules` fields of `geofencing_zones.json` to allow for different restrictions for different vehicle types. When multiple rules in the same array apply to a particular vehicle type, per the semantics of the `vehicle_type_ids` field, then the earlier rule (in order of the JSON file) takes precedence for that vehicle type. When multiple overlapping polygons define rules that apply to a particular vehicle type, then the rules from the earlier polygon (in order of the JSON file) takes precedence for that vehicle type in the overlapping area. Polygons with inactive time ranges should be excluded from consideration when considering precedence. @@ -1434,7 +1434,7 @@ See examples below. "end": "2024-07-18T13:34:13+02:00", "rules": [ { - "vehicle_type_id": [ + "vehicle_type_ids": [ "moped1", "car1" ], @@ -1477,7 +1477,7 @@ In the examples below, only a minimal set of fields are specified for clarity. "properties": { "rules": [ { - "vehicle_type_id": ["bike"], + "vehicle_type_ids": ["bike"], "ride_through_allowed": true } ] @@ -1488,7 +1488,7 @@ In the examples below, only a minimal set of fields are specified for clarity. "properties": { "rules": [ { - "vehicle_type_id": ["bike"], + "vehicle_type_ids": ["bike"], "ride_through_allowed": false, "maximum_speed_kph": 20 } @@ -1498,7 +1498,7 @@ In the examples below, only a minimal set of fields are specified for clarity. ], "global_rules": [ { - "vehicle_type_id": ["bike"], + "vehicle_type_ids": ["bike"], "ride_through_allowed": false, "maximum_speed_kph": 10 } @@ -1525,7 +1525,7 @@ g | bike | false | 10 "properties": { "rules": [ { - "vehicle_type_id": ["bike"], + "vehicle_type_ids": ["bike"], "ride_through_allowed": true } ] @@ -1536,7 +1536,7 @@ g | bike | false | 10 "properties": { "rules": [ { - "vehicle_type_id": ["scooter"], + "vehicle_type_ids": ["scooter"], "ride_through_allowed": false } ] @@ -1545,11 +1545,11 @@ g | bike | false | 10 ], "global_rules": [ { - "vehicle_type_id": ["bike"], + "vehicle_type_ids": ["bike"], "ride_through_allowed": false }, { - "vehicle_type_id": ["scooter"], + "vehicle_type_ids": ["scooter"], "ride_through_allowed": true } ] @@ -1578,7 +1578,7 @@ g | scooter | true "properties": { "rules": [ { - "vehicle_type_id": ["bike", "scooter"], + "vehicle_type_ids": ["bike", "scooter"], "ride_through_allowed": true } ] @@ -1589,7 +1589,7 @@ g | scooter | true "properties": { "rules": [ { - "vehicle_type_id": ["scooter"], + "vehicle_type_ids": ["scooter"], "ride_through_allowed": false } ]