-
Notifications
You must be signed in to change notification settings - Fork 235
Question: should reserved but canceled trips show up in trips endpoint? #399
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
Comments
Not directly. #271 adds the distinction between the reserved and trip status to provider. |
I think this has been resolved with #506 and will be further described with #534. The only status changes that require a reference to a Trip are those that cause the vehicle state to enter or leave So I think the answer is: no, a reservation that is canceled should not show up in the |
Scenario: Someone reserves a device via the app, and the clock starts ticking on the payment per minute. Then after 15 minutes they decide they don't want a ride. So no ride was taken, but they were charged. This was not a trip made, but a charge for a trip was made. So the question is, in the eyes of the MDS endpoint, is this a trip that gets recorded? For counting trips made and distance travelled, no. For looking at fees collected and a device in the ROW, yes. |
to examine fees, as |
@dirkdk do you think that @thekaveman's answer that this is resolved now is good for you? Or do you think there needs to be some clarifying language somewhere about this specific use case, eg that trips only get logged if distance is travelled with device? We can also bring up on a WG call. |
We will be talking about this on the Working Group call tomorrow: https://github.com/openmobilityfoundation/mobility-data-specification/wiki/Web-conference-notes,-2020.10.01-(Joint-Working-Group-City-Services) |
@schnuerle yes. I would agree that indeed we should not include this trip in the Trips endpoint. I can't make the call tomorrow, but I think we are in agreement and have reached a conclusion |
@dirkdk We discussed this on the call today. Some use cases came up related to this, like knowing across a city the percent of fleet devices in use at a time (Blue Systems). Though this could be determined from /events or /status_changes though. Another use case is policies that charge a fee when a reservation is made. Thought this is contained within Policy and relies on /status_changes (and /events maybe in the future), so /trips data is not needed either. There was a hypothetical use case about if the trip was charged, there may be some useful analysis in looking at the fees, but didn't get a city on the call to confirm this. So we need to get some city feedback. Dirk can write up PR for review and feedback? Maybe just some wording clarification about the trips endpoint. Right now it says:
Suggest something like:
Note: in this case zero distance trips would still show up, as long as a device enters I made a new issue #583 that specifically calls out fees. I will link it to the new PR when ready. |
I believe this request is taken care of in MDS 2.0, with this new language and the new state machines. |
Question
We at Spin are working on reservations. For internal reasons that means we create a trip object in our data store. A happy path is that a user first reserves a vehicle and then later starts a trip. However a user may cancel the reservation, without moving the vehicle one bit.
For now I am inclined not to want to have this trip show up in Provider Trips endpoint.
Provider Status Changes would show up yes as there is an event
reserved
with a matchingavailable
for canceling the ride. Same with Agency Push, we have an eventreserve
with a matchingcancel_reservation
, and a separatetrip_start
Question: should reserved but canceled trips show up in Provider Trips endpoint?
Is this a breaking change
Provider
oragency
The text was updated successfully, but these errors were encountered: