Package-level declarations

Types

Link copied to clipboard

Abbreviated (first 3 letters) English name of a day of the week.

Link copied to clipboard

LocalDate in the ISO 8601 basic format (YYYYMMDD).

Link copied to clipboard
typealias CountryCode = String

Country code following the ISO 3166-1 alpha-2 notation.

Link copied to clipboard
typealias CurrencyCode = String

Currency code following the ISO 4217 standard.

Link copied to clipboard

An exact base-10 number with up to 9 fractional digits.

Link copied to clipboard

An integer representing the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970 (Unix epoch).

Link copied to clipboard
@RequiresOptIn(message = "This API models a prerelease or release-candidate specification and may change without a major version bump.", level = RequiresOptIn.Level.ERROR)
annotation class ExperimentalMobilityDataApi

Marks APIs that model a specification that is not the Current Version.

Link copied to clipboard
typealias ExtendedLocalDate = @Serializable(with = LocalDateIso8601Serializer::class) LocalDate

LocalDate in the ISO 8601 extended format (YYYY-MM-DD).

Link copied to clipboard
typealias ExtendedLocalTime = @Serializable(with = LocalTimeIso8601Serializer::class) LocalTime

LocalTime in the ISO 8601 extended format (HH:MM:SS).

Link copied to clipboard
data class GtfsLocalTime(val hours: Int, val minutes: Int, val seconds: Int) : Comparable<GtfsLocalTime>

Time in the HH:MM:SS format (H:MM:SS is also accepted). Represents a wall-clock time shown in the local time of the specified location.

Link copied to clipboard

Boolean value represented as an integer (1 for true, 0 for false).

Link copied to clipboard
Link copied to clipboard

Text localized to multiple languages.

Link copied to clipboard

Url localized to multiple languages.

Link copied to clipboard

Month of the year as a number from 1 to 12.

Link copied to clipboard
value class RgbColor(val value: Int)

A 24-bit color with eight bits each for red, green, and blue components.

Link copied to clipboard

An RgbColor encoded as a six-digit hexadecimal number. The leading "#" MUST be included. Example: #FFFFFF for white or #000000 for black.

Link copied to clipboard

An RgbColor encoded as a six-digit hexadecimal number. The leading "#" MUST NOT be included. Example: FFFFFF for white or 000000 for black.

Link copied to clipboard

Rounding behavior for Decimal operations that cannot be represented exactly at the requested precision.

Link copied to clipboard

Duration as a number of seconds, including fractions.

Link copied to clipboard
data class ServiceTime(val hours: Int, val minutes: Int, val seconds: Int) : Comparable<ServiceTime>

Time in the HH:MM:SS format (H:MM:SS is also accepted). The time is measured from "noon minus 12h" of the service day (effectively midnight except for days on which daylight savings time changes occur). For times occurring after midnight, enter the time as a value greater than 24:00:00 in HH:MM:SS local time for the day on which the trip schedule begins. Example: 14:30:00 for 2:30PM or 25:35:00 for 1:35AM on the next day.

Link copied to clipboard

Timestamp fields represented as strings in RFC3339 format.

Link copied to clipboard
typealias TimeZoneId = String

IANA time zone identifier, such as America/Chicago.

Link copied to clipboard
typealias Uri = String

A fully qualified URI that includes the scheme (for example, com.example.android://). Any special characters in the URI MUST be correctly escaped.

Link copied to clipboard
typealias Url = String

A fully qualified URL that includes http:// or https://. Any special characters in the URL MUST be correctly escaped.

Link copied to clipboard

Duration as an integer of minutes.

Link copied to clipboard

Duration as an integer of seconds.

Properties

Link copied to clipboard

ISO 4217 minor-unit (fraction) digits for this currency code.

Functions

Link copied to clipboard
inline fun <R> suspendRunCatching(block: () -> R): Result<R>

Like runCatching, but rethrows CancellationException to preserve structured concurrency.

Link copied to clipboard
fun TimeZoneId.toTimeZone(): TimeZone

Resolves this identifier against the runtime time zone database.

Link copied to clipboard
fun TimeZoneId.toTimeZoneOrNull(): TimeZone?

Resolves this identifier, or returns null if it is unknown on this platform.