Skip to content

Commit 1e0663c

Browse files
committed
use Point, to be defined
1 parent b39194a commit 1e0663c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

general-information.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,15 @@ A Trip is defined by the following structure:
233233
| `trip_attributes` | Array | Optional | **[Mode](/modes#list-of-supported-modes) Specific**. [Trip attributes](/modes#trip-attributes) given as unordered key-value pairs |
234234
| `start_time` | [Timestamp][ts] | Required | Start of the passenger/driver trip |
235235
| `end_time` | [Timestamp][ts] | Required | End of the passenger/driver trip |
236-
| `start_location` | `{ lat: number, lng: number }` | Required | Location of the start of the trip. See also [Stop-based Geographic Data][stop-based-geo]. |
237-
| `end_location` | `{ lat: number, lng: number }` | Required | Location of the end of the trip. See also [Stop-based Geographic Data][stop-based-geo]. |
236+
| `start_location` | [Point](point) | Required | Location of the start of the trip. See also [Stop-based Geographic Data][stop-based-geo]. |
237+
| `end_location` | [Point](point) | Required | Location of the end of the trip. See also [Stop-based Geographic Data][stop-based-geo]. |
238238
| `publication_time` | [Timestamp][ts] | Optional | Date/time that trip became available through the trips endpoint |
239239
| `fare` | [Fare](#fare) | Conditionally Required | Fare for the trip (required if trip was completed) |
240240

241241
(?) Document that the route is obtained by hitting the /telemetry endpoint with a `trip_id`?
242242

243+
(?) Should we replace `Point` with `Telemetry`?
244+
243245
(?) Should we keep mix of `trip_` prefix vs. no prefix? E.g. `start_time`.
244246

245247
(?) Does anyone use `publication_time`?
@@ -252,7 +254,7 @@ Examples of mode-specific `trip_attributes`:
252254
| ----- | -------- | ----------------- | ----- |
253255
| `dispatch_time` | [Timestamp][ts] | Conditionally Required | Time the vehicle was dispatched to the customer (required if trip was dispatched) |
254256
| `quoted_trip_start_time` | [Timestamp][ts] | Required | Time the trip was estimated or scheduled to start, that was provided to the passenger |
255-
| `requested_trip_start_location` | `{ lat: number, lng: number }` | Conditionally Required | Location where the customer requested the trip to start (required if this is within jurisdictional boundaries) |
257+
| `requested_trip_start_location` | [Point](point) | Conditionally Required | Location where the customer requested the trip to start (required if this is within jurisdictional boundaries) |
256258
| `reservation_method` | Enum | Required | Way the customer created their reservation, see [reservation-method](#reservation-method) |
257259
| `reservation_time` | [Timestamp][ts] | Required | Time the customer *requested* a reservation |
258260
| `reservation_type` | Enum | Required | Type of reservation, see [reservation-type](#reservation-type) |

0 commit comments

Comments
 (0)