GtfsRealtimeClient

HTTP client for fetching GTFS Realtime feeds.

All constructors set expectSuccess = true; non-2xx responses surface as errors in the returned Result.

Constructors

Link copied to clipboard
constructor(block: HttpClientConfig<*>.() -> Unit = {})
constructor(engine: HttpClientEngine, block: HttpClientConfig<*>.() -> Unit = {})

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
suspend fun getFeedMessage(feedUrl: Url): Result<FeedMessage>

Fetches and decodes a GTFS Realtime protobuf feed from the given URL.