-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add /trips endpoint to Agency API #550
Comments
I think that for Agency, we'll likely want to omit these properties found in the Provider
We could additionally omit the |
I think this is a good proposal and could be part of the next major release (2.0) if someone want to take it on. |
I can own it. |
Hi. I feel it would be better to keep the From a Provider point of view : From a Agency point of view : |
We will be discussing this on Thursday's MDS Working Group call. @Karcass will be going over details of a preliminary PR, which you can review here. |
Hey @tonial, thanks for chiming in with some Provider POV feedback, as someone currently working from an Agency standpoint, it's always incredibly valuable to hear what things would look like on the Provider's end :) There are a couple things from your comment I want to address (note: I may have misinterpreted some things, so please correct me if I groked it wrong). It sounds like you're saying that because Providers who are currently operating the Provider API have already implemented
The Agency API already has an endpoint for sending telemetry points, so if a mobility provider were to integrate with the Agency API , they'd still have to update their platform in order to send telemetry POSTs to Agency. This is true today, and I think that it'd still be true in a world where The Agency So, in essence, I think that not including the |
Hi avatarneil. I agree with you when you say that adding But i really think that the most important thing when designing a standard that we want to be adopted by as many people as possible it to keep it as easy as possible for those same people to implement. From my experience, using data as an agency from both provider and agency endpoints used to be really hard in MDS < 1 because of the differences. The gist of the PR it to add an endpoint in the Agency API that already exists in the provider API. |
@tonial Thank you for the response! I'm pretty sure I see what you're getting at. Are you talking primarily about what would be returned from this endpoint in the Agency instance, e.g. if someone were to issue a That all being said, I'm still on the fence about if Agency should even have a |
Minutes and action items from the WG meeting are here. |
@avatarneil. Yes, it's easy to drop the route from the payload for the provider, but it's event easier to have the exact same payload between the two. And from an Agency point of view it's clearly a lot more complex to aggregate data from both Agency - Telemetry and Agency - Trip endpoints to get the trip route. It would be easier to just poll data from the Provider API, and therefore, the use of a Agency Trip is limited. I saw a lot of work made to make Agency and Provider data similar, I think it's sad to keep even small differences since it means more work to develop the API later. |
This is now moved out of the 1.2.0 release and to the next release, like 2.0.0. |
Closing in favor of #722 |
Is your feature request related to a problem? Please describe.
For MDS 1.0, a significant set of changes to both Agency and Provider aligned their terminology, but left their respective APIs largely unchanged.
One capability that Provider has that Agency lacks is the ability to represent certain information about trips, including
trip_duration
,trip_distance
,standard_cost
,actual_cost
, etc. Most of that information cannot be derived from Agency events, andtrip_distance
derived from GPS is always going to be less accurate than the odometer value.Describe the solution you'd like
Add a
/trips
endpoint to Agency that is symmetrical with Provider's/trips
, just push instead of pull.The
route
field might be dropped or made optional, as it should be redundant with the/telemetry
data.Is this a breaking change
Impacted Spec
For which spec is this feature being requested?
agency
Describe alternatives you've considered
We (E&A for LADOT) considered adding all of those fields to the
trip_end
event, but that seemed to unnecessarily add many conditionally-required fields to a particular type of event, and also unreasonably force all of those fields to be calculated at the time thattrip_end
was submitted.Additional context
One of the goals is to be able to have a city do data intake with Agency but re-serve that data via a Provider-style interface that tooling companies like Ride Report can connect to.
The text was updated successfully, but these errors were encountered: