-
Notifications
You must be signed in to change notification settings - Fork 290
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
Future availability of all vehicles in the system #616
Comments
This issue covers a very important topic for us as a provider of journey planning systems. Our goal is to only provide journey itineraries where all legs are available. For public transport legs that means that the trip e.g. is not canceled. For legs with shared vehicles that means that a vehicle is actually available. |
This seems to overlap with #612 , maybe you should join forces? I'm definitely not in favor of extending the existing files with this information. |
What does the community think about adding a new (optional) endpoint listing every vehicle_id in the system and their future availability? |
I do think there's potential to model (fixed) reservations in the future. One example for this is the CommonsBooking WordPress plugin. While it has rudimentary GBFS support (partly broken due to a timezone issue), the GBFS feed can only reflect the current status even though the system manages reservations in the future. In general, reservations (days or weeks ahead into the future) are probably most common in the field of cars or cargo bikes, but it's still worth exploring, imo. |
It's a good point that there's a difference between forecasting availability based on statistical models, and having knowledge of future reservations, but they belong to the same broader category of information: future availability of vehicles. So they should at least be considered together on some level. |
Hi everyone. I have created a first straight forward proposal. Please feel free to give feedback.
This endpoint would provide the current and future availability of all vehicles that operate in a time-slot-reservation mode. That means that bookings into the future of these vehicles is possible. Usually this mode is applied to station fixed vehicles like shared cars.
example
some remarksI opted to include the availability time frames which seems easier to work with from the consumer side. Might look different for the producer where the not_available times - the booked times - might be easier to be provided. |
Thanks for the proposal! I question the duplication of fields from the Ideally, the availability feed should optionally be filterable either by |
Yes, initially I didn't include That's why I included these parameters here too. Regarding the filtering. I agree with you but would add that |
You have a point. However, we then need all fields including lat/lon, rental_uris etc. Then this feed would be an extended version of the |
From speaking with operators, I anticipate that many of them will not wish to publish the total number of vehicles per type they have in their fleet in open data due to competition. To avoid this, a solution could be to extend vehicle_types.json and indicate when at least one vehicle of that type is available at a given location. This would also avoid duplication of fields. We would lose Example (vehicle_types.json):
Looking forward to hearing your feedback! |
I think @richfab is onto something I had in mind but couldn't quite articulate. I think availability at the |
@richfab Thanks for the input. From your example I can not clearly see if the As an example the existing booked (x) and available (0) times of two vehicles at one station in 15 minutes time windows:
The
But it's not possible to book a vehicle from 8:15am to 9:45am. In the latter case with overlapping
From this one could probably infer back to the number of vehicles the operator has in service at this station. At least get a approximation for it. So the intent to hide that information is at least to some extent undermined. For right now I'm leaving out the question if the overlapping time windows are usable for trip planning systems or end user apps. But I would like to question if the future availability information needs to be open data in the sense of openly accessible, exploitable, editable and shared by anyone for any purpose. I don't think that this should be a requirement. If a producer doesn't wish to publish it as open data - which I think is perfectly understandable - it can be shared only with trusted partners. Maybe with a multimodal booking app. If booking vehicles via this app is possible then a contractual agreement will probably be necessary anyhow. And on this bases the sharing of the future availability information could be regulated too. |
Public data has always been a guiding principle of the specification. If access to the data requires a contractual agreement, then by definition it's not public. Were this not a foundational part of the project, we would have included bookings/reservations/payments/persistent IDs etc. My fear is that if we introduce a new file that's not public (requires auth), then the providers will simply require auth for all the files in the feed. If there's a way that we can serve this use case out in the open, I'm all for it. If it requires restricting access to the data then I'm not in favor. Doesn't TOMP already do this? |
Hello Mitch,
Indeed, but the TOMP has something for this, but we're investigating how to reduce the overlap with GBFS, to make them work together. If we can hand this part over to GBFS, 'separation of concerns' is applied. GBFS for data, e.g. published for planning and the TOMP can start when planning/booking is in scope.
How about standardising the future availability within GBFS, and not specifying that this is a non-public file? To me it looks quite simular: the current and future availability. Why is the current availability public and why should the future availability be non-public? If an implementating party doesn't want to publish it for the general public, so be it. That's also the current situation with the available vehicles dataset. Some parties don't want to expose it publically.
Regards,
Edwin
…________________________________
Van: Mitch Vars ***@***.***>
Verzonden: donderdag 20 juni 2024 15:05
Aan: MobilityData/gbfs ***@***.***>
CC: Edwin van den Belt ***@***.***>; Author ***@***.***>
Onderwerp: Re: [MobilityData/gbfs] Future availability of all vehicles in the system (Issue #616)
But I would like to question if the future availability information needs to be open data in the sense of openly accessible, exploitable, editable and shared by anyone for any purpose. I don't think that this should be a requirement.
Public data has always been a guiding principle of the specification. If access to the data requires a contractual agreement, then by definition it's not public. Were this not a foundational part of the project, we would have included bookings/reservations/payments/persistent IDs etc. My fear is that if we introduce a new file that's not public (requires auth), then the providers will simply require auth for all the files in the feed. If there's a way that we can serve this use case out in the open, I'm all for it. If it requires restricting access to the data then I'm not in favor.
Doesn't TOMP already do this?
—
Reply to this email directly, view it on GitHub<#616 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACPLCNX7B5RRDXXYXF356ODZILHQPAVCNFSM6AAAAABFKNQ6ZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBQGYZTGNJXGE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hello everyone, @testower Regarding representing this information in the existing file @matt-wirtz Excellent point about overlapping time intervals (a given vehicle must be available for the entire duration of the reservation). I modified my example to show overlapping intervals.
I think that the approximation of the total number of vehicles per type in the fleet from time interval overlaps is not precise enough to be usable by the competitors. Indeed, in the example with the 3 time intervals, one can only deduce that the station has a minimum of 2 vehicles, but it can have more. With the same time intervals as in your example...
... the station could have 2+n vehicles:
Thoughts? |
@richfab To think about it more thoroughly I think it's necessary to understand how the
Maybe there is a simpler description of how to do it but let's first check if this exactly describes your idea. |
Thanks for clarifying @matt-wirtz. If I'm not mistaken, the table of stations with 4 vehicles matches your description of
My intention is to show that the approximation of the total number of vehicles per type at a given station is not precise enough to be usable by the competitors (from the same set of time intervals, the station could have 2, 3, 4, n vehicles). So this aggregated data can be opened without causing problems for operators, in my opinion. Please let me know if I misunderstood anything. Thanks! |
One question. So it could be something like the station_information file, which only contains static information and includes the vehicles that are available. Such a file could also prevent duplicates. Maybe I'm missing something. I want to understand it. |
Hi @tobsesHub, Great question! The information such as equipment and pricing plan about available vehicles, can be found in the However, the information about unavailable vehicles is not shown because it is of little interest to travelers. Feel free to share use cases where information about unavailable vehicles would be useful to travelers. Thank you! |
Sorry to intervene, Fabien.
This is exactly the reason why we addressed this issue. We want to publish information about vehicles that might be in rent now, but will be available in the (near) future. We don't want to have the exact state of these, but if I, as a traveller want to hire a cargo bike this afternoon, or a bike to visit my grandma, I have to trust nowadays that there is something available. Especially for sparsely available vehicles (like cargo bikes, or bikes located at a bungalowpark) this is relevant. So, just the 'static info' about the bike should be sufficient, including a reference we can use to use in a booking process.
Regards,
Edwin
…________________________________
Van: Fabien Richard-Allouard ***@***.***>
Verzonden: woensdag 10 juli 2024 11:24
Aan: MobilityData/gbfs ***@***.***>
CC: Edwin van den Belt ***@***.***>; Author ***@***.***>
Onderwerp: Re: [MobilityData/gbfs] Future availability of all vehicles in the system (Issue #616)
Hi @tobsesHub<https://github.com/tobsesHub>,
Great question!
The information such as equipment and pricing plan about available vehicles, can be found in the vehicle_status.json file (formerly free_bike_status.json). See reference<https://github.com/MobilityData/gbfs/blob/master/gbfs.md#vehicle_statusjson>.
However, the information about unavailable vehicles is not shown because it is of little interest to travelers.
Feel free to share use cases where information about unavailable vehicles would be useful to travelers.
Thank you!
—
Reply to this email directly, view it on GitHub<#616 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACPLCNX3SOOA3EY6XL2SPVTZLT4WPAVCNFSM6AAAAABFKNQ6ZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJZHE4TSNBTGY>.
You are receiving this because you authored the thread.
|
Hi all, @edwinvandenbelt Good news, the proposal under discussion addresses the need to know if at least one vehicle of a certain type is available in the future. Please find below an iteration on @matt-wirtz's proposal which should address the initial need, the availability windows constraints and open data concerns. Example (new optional file:
We could consider using the same file to represent availability forecasts (#612). Looking forward to hearing your feedback! |
Looking at the When thinking about the computational effort for calculating the So I would rather opt for an optional dedicated |
Hi @richfab. You mentioned earlier in this issue that "you anticipate that many of them [sharing operators] will not wish to publish the total number of vehicles per type they have in their fleet in open data due to competition". Have you already had the chance to get a feedback from operators if the |
Hi @matt-wirtz, |
This discussion has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
Keep open |
Who am I?
Edwin van den Belt, Software architect in the Netherlands, representing the TOMP-API.
What is the issue and why is it an issue?
We started creating the TOMP-API, using the GBFS definitions, in a restful way. But we extended some of these files with additional functionality, search functionality for availability in the future. This also required to publish all vehicles, without status information (in GBFS it shows only the available vehicles in the 'here-and-now'). It is mainly required for reservation purposes, but it cannot be handled by GBFS right now.
Please describe some potential solutions you have considered (even if they aren’t related to GBFS).
For more information, look at: https://github.com/TOMP-WG/TOMP-API/blob/master/documents/presentations/TOMP-API%20-%20GBFS%20-%20availability.pptx
Is your potential solution a breaking change?
The text was updated successfully, but these errors were encountered: