You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a consumer we want to inform the user about what vehicle form factors a station is able to hold. A vehicle form factor must be assigned to each vehicle type in vehicle_types. But in station_information and stations[].vehicle_types_capacity[] only the vehicle type ids are given the station is able to hold. In order to get the vehicle form factors one has to go through all vehicle types and get the corresponding form factor from vehicle_types.
From a consumer perspective it would be easier if the vehicle form factor info is included in the station_information too.
Please describe some potential solutions you have considered (even if they aren’t related to GBFS).
Include a optional array of vehicle form factors a station is able to hold in station_information.
Is your potential solution a breaking change?
Yes
[ X ] No
Unsure
The text was updated successfully, but these errors were encountered:
I understand that it would be simpler for a consumer to have the form factors directly in station_information.
On the other hand, I fear that duplicating this information will lead to discrepancies in the data if the list of form factors is not properly kept up to date in both files by the publisher.
I'm curious to hear what other GBFS users think and how they solved it.
This is a slippery slope. There's a lot of examples of where it could be useful to denormalize, but at the expense of duplicating and increase payload sizes. I don't think it's a good trade-off.
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.
What is the issue and why is it an issue?
As a consumer we want to inform the user about what vehicle form factors a station is able to hold. A vehicle form factor must be assigned to each vehicle type in vehicle_types. But in station_information and stations[].vehicle_types_capacity[] only the vehicle type ids are given the station is able to hold. In order to get the vehicle form factors one has to go through all vehicle types and get the corresponding form factor from vehicle_types.
From a consumer perspective it would be easier if the vehicle form factor info is included in the station_information too.
Please describe some potential solutions you have considered (even if they aren’t related to GBFS).
Include a optional array of vehicle form factors a station is able to hold in station_information.
Is your potential solution a breaking change?
The text was updated successfully, but these errors were encountered: