Class Reference
Information about the classes used to store data. For general information about the entities see: Data organization and structure.
The classes are included in the xyz.teogramm.oasth.base package.
BusCalendar
id:Int |
Internal ID of the calendar. |
nameEL: String |
Name of the calendar in Greek. |
nameEN: String |
Name of the calendar in English. |
isActiveOn (day:DayOfWeek):Boolean |
Returns whether the calendar is active on the given day. |
BusSchedule
calendar: BusCalendar |
Calendar associated with the schedule. |
outboundTimes List<LocalTime> |
List of bus departure times on outbound direction. |
inboundTimes List<LocalTime> |
List of bus departure times on the return direction. |
isActiveOn (day:DayOfWeek):Boolean |
Returns whether the schedule is active on the given day. |
BusStop
internalId: Int |
Internal ID of the stop. Is used for making requests to live API endpoints. |
publicId: String |
Public ID of the stop. Is usually a 5-digit number. The public ID of each stop is visible on the stop sign and can be used on the OASTH website or phone information system. |
nameEL: String |
Stop name in Greek. |
nameEN: String |
Stop name in English. Usually transliterated from Greek. |
heading: Int |
Integer from 0 to 360. Compass heading of the direction a bus stopped at the stop is facing. |
longitude/latitude: Double |
Coordinates of the stop. |
BusRoute
internalId: Int |
Internal ID of the route. Is used for making requests to live API endpoints. |
nameEL: String |
Route name in Greek. |
nameEN: String |
Route name in English. Usually, it’s the same as the Greek one (not translated). |
Stops List<BusStop> |
Ordered list of the stops the route travels through. |
type: RouteTypes |
Route type. |
RouteTypes
Enum class with available route types. In the API responses the different route types are represented with an integer, so each enum value has an integer associated with it.
OUTBOUND (1) |
Start -> End |
INBOUND (2) |
Also called Return. End -> Start |
CIRCULAR (3) |
Start -> Start |
RouteTypes.getById (id: Int): RouteTypes? |
Matches an integer to the corresponding enum value. If no enum value exists returns null. |
BusLine
internalId: Int |
Internal ID of the line. |
lineNumber: String |
Line number. Two digits and can optionally have a letter at the end. |
nameEL: String |
Full line name in Greek without the number. |
nameEN: String |
Line name in English. Usually transliterated from Greek. Long names may be cut off abruptly. |
routes: List<BusRoute> |
List of routes of this line, in no particular order. |
schedules: Set<BusSchedule> |
Set of all schedules associated with this line. |
BusMasterLine
internalId: Int |
Internal ID of the masterline. |
number: String |
Masterline number. Two digits. |
nameEL: String |
Full masterline name in Greek without the number. |
nameEN: String |
Masterline name in English. Usually transliterated from Greek. |
lines: List<BusLine> |
List of lines of this masterline, in no particular order. |