Skip to content

Add trip metadata to Agency #722

Closed

Description

@marie-x

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

  • Depends on the solution chosen

Impacted Spec

For which spec is this feature being requested?

  • agency

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.

Activity

  1. self-assigned this
    on Nov 9, 2021
  2. added this to the 2.0.0 milestone on Nov 10, 2021
  3. added
    UnificationWork to unify MDS APIs like Agency, Provider with push/pull and data models
    on May 19, 2022
  4. linked a pull request that will close this issueProvider/Agency API alignment #796on Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AgencySpecific to the Agency APIUnificationWork to unify MDS APIs like Agency, Provider with push/pull and data models

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions