GbfsV2Client
HTTP client for fetching GBFS v2 feeds.
Functions
Fetches real-time status of free-floating vehicles not currently docked.
suspend fun getGeofencingZones(): Result<GbfsFeedResponse<GeofencingZones>>
Fetches geofencing zones that define geographic restrictions.
suspend fun getStationInformation(): Result<GbfsFeedResponse<StationInformation>>
Fetches static information about stations in the system.
Fetches real-time status of stations including available bikes and docks.
Fetches current system alerts about service disruptions or changes.
Fetches the operating calendar for seasonal systems.
Fetches hours of operation for the system.
suspend fun getSystemInformation(): Result<GbfsFeedResponse<SystemInformation>>
Fetches system information including name, operator, timezone, and contact details.
Fetches the GBFS manifest (auto-discovery file) from the given URL.
suspend fun getSystemPricingPlans(): Result<GbfsFeedResponse<SystemPricingPlans>>
Fetches pricing plans for the system.
Fetches information about geographic regions in the system.
Fetches information about vehicle types available in the system.
suspend fun getVersionManifest(): Result<GbfsFeedResponse<VersionManifest>>
Fetches the list of GBFS versions supported by this system.