Skip to content

Commit 32ec82d

Browse files
authored
Merge pull request #829 from openmobilityfoundation/feature-scooter-sensors
Sensors: Tip Over, Surface Type, Parking Validation
2 parents 8aaa96c + 2ade7d6 commit 32ec82d

1 file changed

Lines changed: 20 additions & 17 deletions

File tree

data-types.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ A standard point of vehicle telemetry. References to latitude and longitude impl
122122
| `journey_id` | UUID | Required | If telemetry occurred during a trip, the ID of the journey. If not in a trip, `null`.
123123
| `stop_id` | UUID | Required if Applicable | Stop that the vehicle is currently located at. Only applicable for _docked_ Micromobility. See [Stops][stops] |
124124
| `location` | [GPS][gps] | Required | Telemetry position data |
125+
| `location_type` | Enum | Required if Known | If detectable and known, what type of location the device is on or in. One of `street`, `sidewalk`, `crosswalk`, `garage`, `bike_lane`. |
125126
| `battery_percent` | Integer | Required if Applicable | Percent battery charge of vehicle, expressed between 0 and 100 |
126127
| `fuel_percent` | Integer | Required if Applicable | Percent fuel in vehicle, expressed between 0 and 100 |
128+
| `tipped_over` | Boolean | Required if Known | If detectable and known, is the device tipped over or not? Default is 'false'. |
127129

128130
### GPS Data
129131

@@ -203,23 +205,24 @@ A Trip is defined by the following structure:
203205
| `data_provider_id` | UUID | Optional | If different than `provider_id`, a UUID for the data solution provider managing this data endpoint. See MDS [provider list](/providers.csv) which includes both service operators and data solution providers. |
204206
| `device_id` | UUID | Required | A unique device ID in UUID format. Cross reference with `/vehicles` for more device details. |
205207
| `journey_id` | UUID | Optional | A unique [journey ID](/modes#journey-id) for associating collections of trips for its [mode][modes] |
206-
| `journey_attributes` | Map | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Journey attributes](/modes#journey-attributes) given as unordered key-value pairs |
207-
| `trip_id` | UUID | Required | A unique ID for each trip |
208-
| `trip_type` | Enum | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. The [trip type](/modes#trip-type) describing the purpose of a trip segment |
209-
| `trip_attributes` | Map | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Trip attributes](/modes#trip-attributes) given as unordered key-value pairs |
210-
| `fare_attributes` | Map | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Fare attributes](/modes#fare-attributes) given as unordered key-value pairs |
211-
| `start_time` | [Timestamp][ts] | Required | Start of the passenger/driver trip |
212-
| `end_time` | [Timestamp][ts] | Required | End of the passenger/driver trip |
213-
| `start_location` | [GPS](gps) | Required | Location of the start of the trip. |
214-
| `end_location` | [GPS](gps) | Required | Location of the end of the trip. |
215-
| `duration` | Integer | Required | Time, in Seconds |
216-
| `distance` | Integer | Required | Trip Distance, in Meters |
217-
| `publication_time` | [Timestamp][ts] | Optional | Date/time that trip became available through the trips endpoint |
218-
| `accessibility_options` | Enum[] | Required | **[Mode](/modes#list-of-supported-modes) Specific**. [Accessibility options](/modes#accessibility-options) given as an array of enumerated values. List of any accessibility options **used during the trip**. |
219-
| `parking_verification_url` | URL | Optional | A URL to a photo (or other evidence) of proper vehicle parking |
220-
| `standard_cost` | Integer | Optional | The cost, in the currency defined in `currency`, to perform that trip in the standard operation of the System (see [Costs & Currencies][costs-and-currencies]) |
221-
| `actual_cost` | Integer | Optional | The actual cost, in the currency defined in `currency`, paid by the customer of the *mobility as a service* provider (see [Costs & Currencies][costs-and-currencies]) |
222-
| `currency` | String | Optional, USD cents is implied if null.| An [ISO 4217 Alphabetic Currency Code][iso4217] representing the currency of the payee (see [Costs & Currencies][costs-and-currencies]) |
208+
| `journey_attributes` | Map | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Journey attributes](/modes#journey-attributes) given as unordered key-value pairs |
209+
| `trip_id` | UUID | Required | A unique ID for each trip |
210+
| `trip_type` | Enum | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. The [trip type](/modes#trip-type) describing the purpose of a trip segment |
211+
| `trip_attributes` | Map | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Trip attributes](/modes#trip-attributes) given as unordered key-value pairs |
212+
| `fare_attributes` | Map | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Fare attributes](/modes#fare-attributes) given as unordered key-value pairs |
213+
| `start_time` | [Timestamp][ts] | Required | Start of the passenger/driver trip |
214+
| `end_time` | [Timestamp][ts] | Required | End of the passenger/driver trip |
215+
| `start_location` | [GPS](gps) | Required | Location of the start of the trip. |
216+
| `end_location` | [GPS](gps) | Required | Location of the end of the trip. |
217+
| `duration` | Integer | Required | Time, in Seconds |
218+
| `distance` | Integer | Required | Trip Distance, in Meters |
219+
| `publication_time` | [Timestamp][ts] | Optional | Date/time that trip became available through the trips endpoint |
220+
| `accessibility_options` | Enum[] | Required | **[Mode](/modes#list-of-supported-modes) Specific**. [Accessibility options](/modes#accessibility-options) given as an array of enumerated values. List of any accessibility options **used during the trip**. |
221+
| `parking_verification_url` | URL | Optional | A URL to a photo (or other evidence) of proper vehicle parking at the end of a trip, provided by customer or operator. |
222+
| `parking_category` | Enum | Optional | The type of parking location detected or provided and the end of a trip. One of `corral`, `curb`, `rack`, `other_valid`, `invalid`. Note that `other_valid` covers any other allowed parking location beyond what is enumerated, and `invalid` is any improper parking based on agency parking rules.
223+
| `standard_cost` | Integer | Optional | The cost, in the currency defined in `currency`, to perform that trip in the standard operation of the System (see [Costs & Currencies][costs-and-currencies]) |
224+
| `actual_cost` | Integer | Optional | The actual cost, in the currency defined in `currency`, paid by the customer of the *mobility as a service* provider (see [Costs & Currencies][costs-and-currencies]) |
225+
| `currency` | String | Optional, USD cents is implied if null.| An [ISO 4217 Alphabetic Currency Code][iso4217] representing the currency of the payee (see [Costs & Currencies][costs-and-currencies]) |
223226

224227
[Top][toc]
225228

0 commit comments

Comments
 (0)