MdbV1Client
HTTP client for the Mobility Database Catalog API v1.
Constructors
Link copied to clipboard
constructor(auth: CatalogAuth, baseUrl: String = DefaultBaseUrl, block: HttpClientConfig<*>.() -> Unit = {})
Creates a client that uses the platform default engine.
constructor(engine: HttpClientEngine, auth: CatalogAuth, baseUrl: String = DefaultBaseUrl, block: HttpClientConfig<*>.() -> Unit = {})
Creates a client that uses the given engine.
Types
Link copied to clipboard
object Companion
Named constants for MdbV1Client.
Functions
Link copied to clipboard
Fetches one hosted GTFS dataset.
Link copied to clipboard
Fetches one GBFS feed.
Link copied to clipboard
Lists GBFS feeds.
Link copied to clipboard
Fetches one GTFS feed.
Link copied to clipboard
suspend fun getGtfsFeedAvailability(id: FeedId, query: AvailabilityQuery = AvailabilityQuery()): Result<GtfsFeedAvailabilityResponse>
Returns historical availability checks for a GTFS feed.
Link copied to clipboard
suspend fun getGtfsFeedDatasets(id: FeedId, query: DatasetQuery = DatasetQuery()): Result<List<GtfsDataset>>
Lists datasets for a GTFS feed, newest first.
Link copied to clipboard
Lists GTFS Realtime feeds related to a GTFS feed.
Link copied to clipboard
Returns the Seal of Reliability breakdown for a GTFS feed.
Link copied to clipboard
Lists GTFS feeds.
Link copied to clipboard
Fetches one GTFS Realtime feed.
Link copied to clipboard
Lists GTFS Realtime feeds.
Link copied to clipboard
Fetches one license, including its rules.
Link copied to clipboard
Lists licenses.
Link copied to clipboard
Searches catalog locations.
Link copied to clipboard
Resolves a license URL to catalog licenses.
Link copied to clipboard
Fetches API process metadata.
Link copied to clipboard
Full-text search over feeds.