Simplify the requests #731
Replies: 1 comment 1 reply
-
I get that it's more work for consumers to fetch individual files but there's a reason it's structured as it is. GBFS defines a mix of data, some of which rarely if ever changes, like the name of a system, it's city & contact information etc, while other data changes very frequently, like vehicle availability and vehicle location. Each of the endpoints has been designed with this in mind. For example,
We've already got feeds that are so large that they often time out before loading the full endpoint, here's an example: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I recently added GBFS to a gis-tools project I've been working on.
I like this project and I do want to admit I probably have perhaps a weaker perception of the larger goal, but I figured I'd try to present this idea incase it's not outside the realm of possibility.
One thing I found slightly frustrating was that to access all the data, it requires multiple fetches for each JSON and may even require an additional fetch for the manifest. This kind of waterfalls down from
gbfs.json
.My argument is that for most of the feeds (or maybe all of them), if you combined each schema, you'd still end up with a fairly small json file to ship out.
The idea then is that the
gbfs.json
COULD, if desired from the one hosting the data, ship all of the data in a single request.The idea is that
gbfs.json
can come in two forms, one for a combination of everything in it, or its current form as pointers to the other available data.Beta Was this translation helpful? Give feedback.
All reactions