Skip to content

Commit f66d574

Browse files
committed
Added fare_attributes to trips object
1 parent 21b748b commit f66d574

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

data-types.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ A Trip is defined by the following structure:
215215
| `trip_duration` | Integer | Required | Time, in Seconds |
216216
| `trip_distance` | Integer | Required | Trip Distance, in Meters |
217217
| `trip_attributes` | Map | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Trip attributes](/modes#trip-attributes) given as unordered key-value pairs |
218+
| `fare_attributes` | Map | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Fare attributes](/modes#fare-attributes) given as unordered key-value pairs |
218219
| `start_time` | [Timestamp][ts] | Required | Start of the passenger/driver trip |
219220
| `end_time` | [Timestamp][ts] | Required | End of the passenger/driver trip |
220221
| `start_location` | [Point](point) | Required | Location of the start of the trip. See also [Stop-based Geographic Data][stop-based-geo]. |

modes/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ The `trip_attributes` array allows additional mode-specific information about th
6060

6161
_See more available trip attributes for any mode in the [trips endpoint](/provider#trips)._
6262

63+
### Fare Attributes
64+
65+
The `fare_attributes` array allows additional mode-specific information about fare information associated with the trip. It can return a list of JSON-formatted key/value pairs which correspond to the allowed attributes and values for the operative mode. See each [mode definition](#list-of-supported-modes) for details.
66+
67+
_See more available fare attributes for any mode in the [trips endpoint](/provider#trips)._
68+
6369
### Vehicle Attributes
6470

6571
The `vehicle_attributes` array returns a list of JSON-formatted key/value pairs which correspond to the allowed attributes and values for the operative mode. For each mode, the allowed attributes and corresponding values are defined in the [mode definition](#list-of-supported-modes).

0 commit comments

Comments
 (0)