GbfsFeedResponse

data class GbfsFeedResponse<T : GbfsFeedData>(val lastUpdated: Timestamp, val ttl: WholeSeconds, val version: String, val data: T)(source)

Standard GBFS feed response wrapper.

All GBFS feeds are wrapped in this structure that provides metadata about the feed.

Constructors

Link copied to clipboard
constructor(lastUpdated: Timestamp, ttl: WholeSeconds, version: String, data: T)

Properties

Link copied to clipboard
val data: T

Response data in the form of the specific feed type being accessed.

Link copied to clipboard
@SerialName(value = "last_updated")
val lastUpdated: Timestamp

Timestamp indicating the last time the data in this feed was updated.

Link copied to clipboard

Number of seconds representing how long before the data in this feed will be updated again.

Link copied to clipboard

GBFS version number to which the feed conforms, according to the versioning framework.