openmobilityfoundation / mobility-data-specification

A data standard to enable right-of-way regulation and two-way communication between mobility companies and local governments.
https://www.openmobilityfoundation.org/about-mds/
Other
676 stars 232 forks source link

Add trip metadata to Agency #722

Closed marie-x closed 1 year ago

marie-x commented 2 years ago

Is your feature request related to a problem? Please describe.

Agency does not have access to trip metadata available in Provider, including trip_distance, standard_cost, actual_cost, and currency. Most of the other trip data fields such as start_time and end_time are available from the /event stream.

Describe the solution you'd like

One possibility is to add a /trips endpoint to Agency that is fully symmetrical with Provider's /trips. To remove redundant route data, telemetry would not be sent during trips. This might make MDS more palatable to those with privacy concerns about in-trip tracking.

Another is to add a /trips endpoint that has only the otherwise-unavailable metadata, and continue to use /telemetry to provide route data (define as all telemetry occurring between start_time and end_time).

A third is to add event-specific fields to the trip_end event, but this has significant drawbacks such as making events non-uniform, as well as putting tension on timely trip-end-event-reporting vs. accurate trip-metadata-reporting. The trip distance may need to be calculated in a data pipeline, for example.

Is this a breaking change

Impacted Spec

For which spec is this feature being requested?

Describe alternatives you've considered

One possibility is to just use Provider and Agency side-by-side, but that's not on the table for LADOT.

Additional context

Nothing at the moment.