Package-level declarations

Types

Link copied to clipboard
data class AccessToken(val accessToken: String? = null, val expirationDatetimeUtc: IsoDateTime? = null, val tokenType: String? = null)

Access token returned by POST /v1/tokens/access.

Link copied to clipboard
data class AccessTokenRequest(val refreshToken: String)

Request body for POST /v1/tokens/access.

Link copied to clipboard
data class AvailabilityQuery(val from: IsoDateTime? = null, val to: IsoDateTime? = null, val limit: Int? = null, val offset: Int? = null, val sort: AvailabilitySort? = null)

Query parameters for GET /v1/gtfs_feeds/{id}/availability.

Link copied to clipboard

HTTP method used for an availability check.

Link copied to clipboard
value class AvailabilitySort(val value: String)

Sort order for availability history.

Link copied to clipboard
data class BoundingBox(val minimumLatitude: Double? = null, val maximumLatitude: Double? = null, val minimumLongitude: Double? = null, val maximumLongitude: Double? = null)

Geographic bounding box of a dataset.

Link copied to clipboard
value class BoundingFilterMethod(val value: String)

How a dataset bounding-box filter selects feeds.

Link copied to clipboard
sealed class CatalogAuth

Credentials for the Mobility Database Catalog API.

Link copied to clipboard
data class DatasetBboxFilter(val minimumLatitude: Double, val maximumLatitude: Double, val minimumLongitude: Double, val maximumLongitude: Double)

Latitude and longitude extents for dataset_latitudes and dataset_longitudes.

Link copied to clipboard
data class DatasetQuery(val latest: Boolean? = null, val limit: Int? = null, val offset: Int? = null, val downloadedAfter: IsoDateTime? = null, val downloadedBefore: IsoDateTime? = null)

Query parameters for GET /v1/gtfs_feeds/{id}/datasets.

Link copied to clipboard
data class ExternalId(val externalId: String? = null, val source: String? = null)

Identifier for the same feed in an external or legacy database.

Link copied to clipboard

A Mobility Database catalog feed.

Link copied to clipboard
value class FeedDataType(val value: String)

Catalog data_type discriminator: gtfs, gtfs_rt, or gbfs.

Link copied to clipboard
value class FeedId(val value: String)

Catalog identifier for a feed, such as mdb-1210.

Link copied to clipboard
data class FeedQuery(val limit: Int? = null, val offset: Int? = null, val status: FeedStatus? = null, val provider: String? = null, val producerUrl: String? = null, val isOfficial: Boolean? = null)

Query parameters for GET /v1/feeds.

Link copied to clipboard
data class FeedRelatedLink(val code: String? = null, val description: String? = null, val url: String? = null, val createdAt: IsoDateTime? = null)

A related link attached to a feed.

Link copied to clipboard
data class FeedReliabilityReport(val feedId: FeedId? = null, val hasSeal: Boolean? = null, val earnedAt: IsoDateTime? = null, val lostAt: IsoDateTime? = null, val evaluatedAt: IsoDateTime? = null, val onProbation: Boolean? = null, val probationEndsAt: IsoDateTime? = null, val criteria: List<ReliabilityCriterion>? = null)

Full Seal of Reliability breakdown for a GTFS feed.

Link copied to clipboard
data class FeedReliabilitySummary(val hasSeal: Boolean? = null, val earnedAt: IsoDateTime? = null, val lostAt: IsoDateTime? = null, val evaluatedAt: IsoDateTime? = null, val onProbation: Boolean? = null, val probationEndsAt: IsoDateTime? = null)

Embedded Seal of Reliability summary on a GTFS feed.

Link copied to clipboard
value class FeedStatus(val value: String)

Publication status of a feed.

Link copied to clipboard
data class GbfsEndpoint(val name: String? = null, val url: String? = null, val language: String? = null, val isFeature: Boolean? = null)

One endpoint in a GBFS version.

Link copied to clipboard
data class GbfsFeedQuery(val limit: Int? = null, val offset: Int? = null, val provider: String? = null, val producerUrl: String? = null, val countryCode: String? = null, val subdivisionName: String? = null, val municipality: String? = null, val systemId: String? = null, val version: String? = null)

Query parameters for GET /v1/gbfs_feeds.

Link copied to clipboard
data class GbfsValidationReport(val validatedAt: IsoDateTime? = null, val totalError: Int? = null, val reportSummaryUrl: String? = null, val validatorVersion: String? = null)

Validation report for a GBFS version.

Link copied to clipboard
data class GbfsVersion(val version: String? = null, val createdAt: IsoDateTime? = null, val lastUpdatedAt: IsoDateTime? = null, val source: GbfsVersionSource? = null, val endpoints: List<GbfsEndpoint>? = null, val latestValidationReport: GbfsValidationReport? = null)

One GBFS specification version supported by a feed.

Link copied to clipboard

Origin of a GbfsVersion row.

Link copied to clipboard
data class GtfsDataset(val id: String? = null, val feedId: FeedId? = null, val hostedUrl: String? = null, val note: String? = null, val downloadedAt: IsoDateTime? = null, val hash: String? = null, val hashMd5: String? = null, val boundingBox: BoundingBox? = null, val validationReport: ValidationReport? = null, val serviceDateRangeStart: IsoDateTime? = null, val serviceDateRangeEnd: IsoDateTime? = null, val agencyTimezone: String? = null, val zippedFolderSizeMb: Double? = null, val unzippedFolderSizeMb: Double? = null)

A GTFS dataset hosted by the catalog.

Link copied to clipboard
data class GtfsFeedAvailabilityCheck(val checkedAt: IsoDateTime? = null, val success: Boolean? = null, val requestMethod: AvailabilityRequestMethod? = null, val statusCode: Int? = null, val latencyMs: Double? = null, val errorType: String? = null)

One scheduled availability check.

Link copied to clipboard
data class GtfsFeedAvailabilityResponse(val feedId: FeedId? = null, val total: Int? = null, val offset: Int? = null, val limit: Int? = null, val checks: List<GtfsFeedAvailabilityCheck>? = null)

Historical availability checks for a GTFS feed.

Link copied to clipboard
data class GtfsFeedQuery(val limit: Int? = null, val offset: Int? = null, val provider: String? = null, val producerUrl: String? = null, val countryCode: String? = null, val subdivisionName: String? = null, val municipality: String? = null, val isOfficial: Boolean? = null, val datasetBbox: DatasetBboxFilter? = null, val boundingFilterMethod: BoundingFilterMethod? = null)

Query parameters for GET /v1/gtfs_feeds.

Link copied to clipboard
data class GtfsRtFeedQuery(val limit: Int? = null, val offset: Int? = null, val provider: String? = null, val producerUrl: String? = null, val entityTypes: List<RealtimeEntityType>? = null, val countryCode: String? = null, val subdivisionName: String? = null, val municipality: String? = null, val isOfficial: Boolean? = null)

Query parameters for GET /v1/gtfs_rt_feeds.

Link copied to clipboard

Instant encoded as an ISO-8601 date-time string.

Link copied to clipboard

Serializer for Instant that reads and writes ISO-8601 date-time strings.

Link copied to clipboard
data class LatestDataset(val id: String? = null, val hostedUrl: String? = null, val boundingBox: BoundingBox? = null, val downloadedAt: IsoDateTime? = null, val hash: String? = null, val hashMd5: String? = null, val serviceDateRangeStart: IsoDateTime? = null, val serviceDateRangeEnd: IsoDateTime? = null, val agencyTimezone: String? = null, val zippedFolderSizeMb: Double? = null, val unzippedFolderSizeMb: Double? = null, val validationReport: ValidationReport? = null)

Latest dataset summary embedded on a GTFS feed.

Link copied to clipboard
data class License(val id: String? = null, val type: String? = null, val isSpdx: Boolean? = null, val name: String? = null, val url: String? = null, val description: String? = null, val createdAt: IsoDateTime? = null, val updatedAt: IsoDateTime? = null, val licenseTags: List<String>? = null)

A catalog license as returned by GET /v1/licenses.

Link copied to clipboard
data class LicenseMatchRequest(val licenseUrl: String)

Request body for POST /v1/licenses:match.

Link copied to clipboard

Kind of license URL match.

Link copied to clipboard
data class LicenseQuery(val limit: Int? = null, val offset: Int? = null)

Query parameters for GET /v1/licenses.

Link copied to clipboard
data class LicenseRule(val name: String? = null, val label: String? = null, val description: String? = null, val type: LicenseRuleType? = null)

One permission, condition, or limitation on a license.

Link copied to clipboard

Kind of LicenseRule.

Link copied to clipboard
data class LicenseWithRules(val id: String? = null, val type: String? = null, val isSpdx: Boolean? = null, val name: String? = null, val url: String? = null, val description: String? = null, val createdAt: IsoDateTime? = null, val updatedAt: IsoDateTime? = null, val licenseTags: List<String>? = null, val licenseRules: List<LicenseRule>? = null)

A catalog license including its rules, as returned by GET /v1/licenses/{id}.

Link copied to clipboard
data class Location(val countryCode: String? = null, val country: String? = null, val subdivisionName: String? = null, val municipality: String? = null)

Geographic area associated with a feed.

Link copied to clipboard
data class LocationQuery(val limit: Int? = null, val offset: Int? = null, val searchQuery: String? = null, val countryCode: String? = null, val subdivisionCode: String? = null, val locationType: LocationType? = null)

Query parameters for GET /v1/locations.

Link copied to clipboard
data class LocationSearchResponse(val total: Int? = null, val results: List<LocationSearchResult>? = null)

Paginated location search response.

Link copied to clipboard
data class LocationSearchResult(val locationId: Int? = null, val parentLocationId: Int? = null, val name: String? = null, val altName: String? = null, val locationType: LocationType? = null, val countryName: String? = null, val countryCode: String? = null, val subdivisionName: String? = null, val subdivisionCode: String? = null, val pathNames: List<String>? = null, val displayName: String? = null)

One location in a search result page.

Link copied to clipboard
value class LocationType(val value: String)

Kind of catalog location.

Link copied to clipboard
data class MatchingLicense(val licenseId: String? = null, val licenseUrl: String? = null, val normalizedUrl: String? = null, val matchType: LicenseMatchType? = null, val confidence: Double? = null, val spdxId: String? = null, val matchedName: String? = null, val matchedCatalogUrl: String? = null, val matchedSource: String? = null, val notes: String? = null, val regionalId: String? = null)

One catalog license that matched a submitted URL.

Link copied to clipboard

HTTP client for the Mobility Database Catalog API v1.

Link copied to clipboard
data class Metadata(val version: String? = null, val commitHash: String? = null)

Build metadata for the catalog API process.

Link copied to clipboard

GTFS Realtime entity type published by a feed.

Link copied to clipboard
data class Redirect(val targetId: FeedId? = null, val comment: String? = null)

A replacement feed that should be used instead of the current one.

Link copied to clipboard
data class ReliabilityCriterion(val criterion: ReliabilityCriterionId? = null, val status: ReliabilityCriterionStatus? = null, val inGracePeriod: Boolean? = null, val gracePeriodEndsAt: IsoDateTime? = null, val onProbation: Boolean? = null, val probationEndsAt: IsoDateTime? = null, val evaluatedAt: IsoDateTime? = null, val firstFailureAt: IsoDateTime? = null, val lastFailureAt: IsoDateTime? = null)

One criterion's contribution to the Seal of Reliability.

Link copied to clipboard

Seal of Reliability criterion name.

Link copied to clipboard

Verdict for one reliability criterion.

Link copied to clipboard
data class SearchFeedItem(val id: FeedId? = null, val dataType: FeedDataType? = null, val status: FeedStatus? = null, val createdAt: IsoDateTime? = null, val official: Boolean? = null, val seasonal: Boolean? = false, val externalIds: List<ExternalId>? = null, val provider: String? = null, val feedName: String? = null, val note: String? = null, val feedContactEmail: String? = null, val sourceInfo: SourceInfo? = null, val redirects: List<Redirect>? = null, val locations: List<Location>? = null, val latestDataset: LatestDataset? = null, val entityTypes: List<RealtimeEntityType>? = null, val versions: List<String>? = null, val feedReferences: List<FeedId>? = null, val reliabilitySeal: FeedReliabilitySummary? = null)

One feed in a search result page.

Link copied to clipboard
data class SearchFeedsQuery(val limit: Int? = null, val offset: Int? = null, val status: List<FeedStatus>? = null, val feedId: FeedId? = null, val dataType: List<FeedDataType>? = null, val isOfficial: Boolean? = null, val hasSeal: Boolean? = null, val version: List<String>? = null, val searchQuery: String? = null, val feature: List<String>? = null, val licenseIds: List<String>? = null, val licenseIsSpdx: Boolean? = null, val licenseTags: List<String>? = null)

Query parameters for GET /v1/search.

Link copied to clipboard
data class SearchFeedsResponse(val total: Int? = null, val results: List<SearchFeedItem>? = null)

Envelope returned by GET /v1/search.

Link copied to clipboard
data class SourceInfo(val producerUrl: String? = null, val isProducerUrlUnstable: Boolean? = null, val authenticationType: Int? = null, val authenticationInfoUrl: String? = null, val apiKeyParameterName: String? = null, val licenseUrl: String? = null, val licenseId: String? = null, val licenseIsSpdx: Boolean? = null, val licenseNotes: String? = null, val licenseTags: List<String>? = null)

Producer URL and how to authenticate to it.

Link copied to clipboard
data class ValidationReport(val validatedAt: IsoDateTime? = null, val features: List<String>? = null, val validatorVersion: String? = null, val totalError: Int? = null, val totalWarning: Int? = null, val totalInfo: Int? = null, val uniqueErrorCount: Int? = null, val uniqueWarningCount: Int? = null, val uniqueInfoCount: Int? = null, val urlJson: String? = null, val urlHtml: String? = null)

GTFS validation report summary.

Properties

Link copied to clipboard

Pre-configured JSON instance for the Mobility Database Catalog API.