From 7079c0bf448e052e6f4f03dc3ea7e94888247aaa Mon Sep 17 00:00:00 2001 From: Johannes Vockeroth Date: Wed, 30 Nov 2022 15:58:47 +0100 Subject: [PATCH 1/2] Add description to vehicle_types We found it useful to show vehicle-type specific texts to our customers --- gbfs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gbfs.md b/gbfs.md index 4d021495..38fe57e0 100644 --- a/gbfs.md +++ b/gbfs.md @@ -452,6 +452,7 @@ Field Name | REQUIRED | Type | Defines | \- `make`
*(added in v2.3-RC2)*| OPTIONAL| String| The name of the vehicle manufacturer.

Example: | \- `model`
*(added in v2.3-RC2)*| OPTIONAL| String| The name of the vehicle model.

Example | \- `color`
*(added in v2.3-RC2)*| OPTIONAL| String| The color of the vehicle.

All words must be in lower case, without special characters, quotation marks, hyphens, underscores, commas, or dots. Spaces are allowed in case of a compound name.

Example +| \- `description`
*(added in v3.0-Draft)*| OPTIONAL| String| Customer-readable description of the vehicle type outlining special features or how-tos. \- `wheel_count`
*(added in v2.3-RC2)* | OPTIONAL | Non-negative Integer | Number of wheels this vehicle type has. \- `max_permitted_speed`
*(added in v2.3-RC2)* | OPTIONAL | Non-negative Integer | The maximum speed in kilometers per hour this vehicle is permitted to reach in accordance with local permit and regulations. \- `rated_power`
*(added in v2.3-RC2)* | OPTIONAL | Non-negative Integer | The rated power of the motor for this vehicle type in watts. @@ -498,6 +499,7 @@ Field Name | REQUIRED | Type | Defines "form_factor": "cargo_bicycle", "propulsion_type": "human", "name": "Example Cargo Bike", + "description": "Extra comfortable seat with additional suspension.\n\nPlease be aware of the cargo box lock: you need to press it down before pulling it up again!", "wheel_count": 3, "default_reserve_time": 30, "return_constraint": "roundtrip_station", From b3686e2630942e2380cae00aac5f8a20cdf337e2 Mon Sep 17 00:00:00 2001 From: Josee Sabourin <66266820+josee-sabourin@users.noreply.github.com> Date: Mon, 23 Jan 2023 13:00:47 -0500 Subject: [PATCH 2/2] Update to reflect changes in #460 --- gbfs.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gbfs.md b/gbfs.md index 38fe57e0..cb95d781 100644 --- a/gbfs.md +++ b/gbfs.md @@ -452,7 +452,9 @@ Field Name | REQUIRED | Type | Defines | \- `make`
*(added in v2.3-RC2)*| OPTIONAL| String| The name of the vehicle manufacturer.

Example: | \- `model`
*(added in v2.3-RC2)*| OPTIONAL| String| The name of the vehicle model.

Example | \- `color`
*(added in v2.3-RC2)*| OPTIONAL| String| The color of the vehicle.

All words must be in lower case, without special characters, quotation marks, hyphens, underscores, commas, or dots. Spaces are allowed in case of a compound name.

Example -| \- `description`
*(added in v3.0-Draft)*| OPTIONAL| String| Customer-readable description of the vehicle type outlining special features or how-tos. +| \- `description`
*(added in v3.0-Draft)*| OPTIONAL| Array| Customer-readable description of the vehicle type outlining special features or how-tos. An array with one object per supported language with the following keys: + \-  `text` | Yes | String | The translated text. + \-  `language` | Yes | Language | IETF BCP 47 language code. \- `wheel_count`
*(added in v2.3-RC2)* | OPTIONAL | Non-negative Integer | Number of wheels this vehicle type has. \- `max_permitted_speed`
*(added in v2.3-RC2)* | OPTIONAL | Non-negative Integer | The maximum speed in kilometers per hour this vehicle is permitted to reach in accordance with local permit and regulations. \- `rated_power`
*(added in v2.3-RC2)* | OPTIONAL | Non-negative Integer | The rated power of the motor for this vehicle type in watts. @@ -499,7 +501,12 @@ Field Name | REQUIRED | Type | Defines "form_factor": "cargo_bicycle", "propulsion_type": "human", "name": "Example Cargo Bike", - "description": "Extra comfortable seat with additional suspension.\n\nPlease be aware of the cargo box lock: you need to press it down before pulling it up again!", + "description": [ + { + "text": "Extra comfortable seat with additional suspension.\n\nPlease be aware of the cargo box lock: you need to press it down before pulling it up again!", + "language": "en" + } + ], "wheel_count": 3, "default_reserve_time": 30, "return_constraint": "roundtrip_station",