Package-level declarations

Types

Link copied to clipboard
data class BookingDetail(val serviceName: String? = null, val androidUri: Uri? = null, val iosUri: Uri? = null, val webUri: Url? = null, val phoneNumber: String? = null)

Details about how to book the on-demand service.

Link copied to clipboard
data class BookingRule(val fromZoneIds: List<String>, val toZoneIds: List<String>?, val bookingType: BookingType, val priorNoticeDurationMin: WholeMinutes? = null, val priorNoticeDurationMax: WholeMinutes? = null, val priorNoticeLastDay: Int? = null, val priorNoticeLastTime: ServiceTime? = null, val priorNoticeStartDay: Int? = null, val priorNoticeStartTime: ServiceTime? = null, val priorNoticeCalendarId: String? = null, val message: String? = null, val pickupMessage: String? = null, val dropOffMessage: String? = null, val phoneNumber: String? = null, val infoUrl: String? = null, val bookingUrl: String? = null)

A single booking rule defining how to book a ride for specific zones.

Link copied to clipboard

Defines rules about how to book a ride.

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

Indicates how far in advance booking can be made.

Link copied to clipboard
data class Brand(val brandId: String, val brandName: String, val brandColor: RgbColorTriplet? = null, val brandTextColor: RgbColorTriplet? = null)

A service brand with its visual identity.

Link copied to clipboard
data class Calendar(val calendarId: String, val days: List<AbbreviatedWeekday>? = null, val startDate: BasicLocalDate, val endDate: BasicLocalDate, val exceptedDates: List<BasicLocalDate>? = null)

A calendar defining when on-demand services are available.

Link copied to clipboard
data class Calendars(val calendars: List<Calendar>) : GofsFeedData, List<Calendar>

Defines the dates and days when on-demand services are available to the riders.

Link copied to clipboard
data class Fare(val fareId: String, val currency: CurrencyCode, val kilometer: List<FareEntry>? = null, val minute: List<FareEntry>? = null, val activeMinute: List<FareEntry>? = null, val idleMinute: List<FareEntry>? = null, val rider: List<FareEntry>? = null, val luggage: List<FareEntry>? = null)

A fare definition with pricing rules.

Link copied to clipboard
data class FareEntry(val interval: Double? = null, val start: Int? = null, val end: Int? = null, val amount: Double? = null)

A single fare entry defining pricing for a specific segment.

Link copied to clipboard
data class Fares(val fares: List<Fare>) : GofsFeedData, List<Fare>

Defines fare calculations for a system.

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

The type of GOFS feed.

Link copied to clipboard
sealed interface GofsFeedData

Marker interface for GOFS feed data types.

Link copied to clipboard
data class GofsFeedResponse<T : GofsFeedData>(val lastUpdated: EpochSeconds, val ttl: WholeSeconds, val version: String, val data: T)

Common header structure for all GOFS feed responses.

Link copied to clipboard

HTTP client for fetching GOFS v1 feeds.

Link copied to clipboard
data class OperatingRule(val fromZoneId: String, val toZoneId: String, val startPickupWindow: ServiceTime? = null, val endPickupWindow: ServiceTime? = null, val endDropoffWindow: ServiceTime? = null, val calendars: List<String>, val brandId: String? = null, val vehicleTypeIds: List<String>, val fareId: String? = null)

A single operating rule defining when and where on-demand services are available.

Link copied to clipboard

Contains operating rules enabling on-demand services between zones or within the same zone.

Link copied to clipboard
data class RealtimeBooking(val brandId: String, val waitTime: WholeSeconds, val travelTime: WholeSeconds? = null, val travelCost: Double? = null, val travelCostCurrency: CurrencyCode? = null, val bookingDetail: BookingDetail? = null)

Real-time booking information for a specific service brand.

Link copied to clipboard

Provides time/cost estimates and realtime booking information for specific locations.

Link copied to clipboard
data class Service(val feeds: Map<FeedType, Url>) : Map<FeedType, Url>

A service containing feeds for a specific language.

Link copied to clipboard
data class ServiceBrands(val serviceBrands: List<Brand>) : GofsFeedData, List<Brand>

Defines the on-demand service brands available to the riders.

Link copied to clipboard
data class SystemInformation(val language: LanguageCode, val timezone: TimeZone, val name: String, val shortName: String? = null, val operator: String? = null, val url: Url? = null, val subscribeUrl: Url? = null, val startDate: BasicLocalDate? = null, val phoneNumber: String? = null, val email: String? = null, val feedContactEmail: String? = null) : GofsFeedData

Defines the attributes of the on-demand service system.

Link copied to clipboard

Auto-discovery file that links to all of the other files published by the data producer.

Link copied to clipboard
data class VehicleType(val vehicleTypeId: String, val maxCapacity: Int? = null, val wheelchairBoarding: WheelchairBoarding? = null)

Information about a specific vehicle type used in on-demand services.

Link copied to clipboard

Defines the vehicle types used for operating the on-demand services.

Link copied to clipboard
data class VersionInfo(val version: String, val url: Url)

Information about a specific version of a GOFS feed.

Link copied to clipboard

Shows the different versions available for the same GOFS feed.

Link copied to clipboard
data class WaitTime(val brandId: String, val waitTime: WholeSeconds)

Wait time information for a specific service brand.

Link copied to clipboard
data class WaitTimes(val waitTimes: List<WaitTime>) : GofsFeedData, List<WaitTime>

Returns the wait time for a specific location.

Link copied to clipboard

Wheelchair boarding accessibility options for a vehicle.

Link copied to clipboard
data class Zone(val name: String)

Properties for a zone feature.

Link copied to clipboard
data class Zones(val zones: FeatureCollection<Polygon, Zone>) : GofsFeedData

Geographically defines the zones where the on-demand services are available to the riders.

Properties

Link copied to clipboard

Pre-configured JSON instance for parsing GOFS feeds.