Skip to content

Support for GBFS v3.0#156

Merged
testower merged 44 commits intomasterfrom
gbfs-3
Apr 8, 2024
Merged

Support for GBFS v3.0#156
testower merged 44 commits intomasterfrom
gbfs-3

Conversation

@testower
Copy link
Copy Markdown
Collaborator

@testower testower commented Mar 19, 2024

This PR adds support for loading GBFS v3.0 feeds (currently 3.0-RC2). There are some API changes, so this leads to a major version bump.

GbfsSubscriptionManager, being the main entrypoint of the library, now has two subscription factory methods, one for < v3.x and one for 3.x. Library users will have to know the (major) version of the feed they are subscribing to up front, and the consumer will get the version specific model from gbfs-java-model.

GbfsLoader now has factory methods for version-specifc loader classes.

Mapping between versions must be done after consuming.

Note that support for loading multiple systems from manifest.json is not part of this PR.

@testower testower added the enhancement New feature or request label Mar 22, 2024
@testower testower self-assigned this Mar 22, 2024
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 8, 2024

@testower testower merged commit f241c7e into master Apr 8, 2024
@testower testower deleted the gbfs-3 branch April 8, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant