GbfsV3Client
HTTP client for fetching GBFS v3 feeds.
Functions
Fetches the dataset manifest from the given URL.
suspend fun getGeofencingZones(): Result<GbfsFeedResponse<GeofencingZones>>
Fetches geofencing zones that define geographic restrictions.
Fetches the GBFS manifest (auto-discovery file) from the given URL.
suspend fun getStationInformation(): Result<GbfsFeedResponse<StationInformation>>
Fetches static information about stations in the system.
suspend fun getStationStatus(): Result<GbfsFeedResponse<StationStatus>>
Fetches real-time status of stations including available bikes and docks.
suspend fun getSystemAlerts(): Result<GbfsFeedResponse<SystemAlerts>>
Fetches current system alerts about service disruptions or changes.
suspend fun getSystemInformation(): Result<GbfsFeedResponse<SystemInformation>>
Fetches system information including name, operator, timezone, and contact details.
suspend fun getSystemPricingPlans(): Result<GbfsFeedResponse<SystemPricingPlans>>
Fetches pricing plans for the system.
suspend fun getSystemRegions(): Result<GbfsFeedResponse<SystemRegions>>
Fetches information about geographic regions in the system.
suspend fun getVehicleAvailability(): Result<GbfsFeedResponse<VehicleAvailability>>
Fetches future availability of vehicles that can be reserved in advance.
suspend fun getVehicleStatus(): Result<GbfsFeedResponse<VehicleStatus>>
Fetches real-time status of free-floating vehicles not currently docked.
suspend fun getVehicleTypes(): Result<GbfsFeedResponse<VehicleTypes>>
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.