Dataset

data class Dataset(val systemId: String, val versions: List<VersionInfo>, val area: MultiPolygon? = null, val countryCode: CountryCode? = null)(source)

Represents a GBFS dataset published by a provider.

Each dataset corresponds to a distinct system or geographic area in which vehicles are operated, identified by its system ID and available in multiple GBFS versions.

Constructors

Link copied to clipboard
constructor(systemId: String, versions: List<VersionInfo>, area: MultiPolygon? = null, countryCode: CountryCode? = null)

Properties

Link copied to clipboard
val area: MultiPolygon?

A GeoJSON MultiPolygon that describes the operating area.

Link copied to clipboard

The ISO 3166-1 alpha-2 country code of the operating area.

Link copied to clipboard
@SerialName(value = "system_id")
val systemId: String

The system_id from system_information.json for the corresponding data set(s).

Link copied to clipboard

Contains one object for each of the available versions of a feed. The array MUST be sorted by increasing MAJOR and MINOR version number.