/tripkit/CommonCoreLegacy/com.skedgo.tripkit.common.model.stop/ServiceStop

ServiceStop

\ open class ServiceStop : Location, WheelchairAccessible, BicycleAccessible

Represents a future stop of a service in a trip.

Constructors

ServiceStop constructor()constructor(location: Location)

Properties

Name Summary
address open var address: String
appUrl open var appUrl: String
arrivalTime @SerializedName(value = "arrival")
open var arrivalTime: Long
averageRating open var averageRating: Float
bearing open var bearing: Int
bicycleAccessible @SerializedName(value = "bicycleAccessible")
@Nullable
@get:Nullable
open val bicycleAccessible: Boolean
code @SerializedName(value = "code")
open var code: String
Companion val Companion: Location.Companion
CONTENTS_FILE_DESCRIPTOR val CONTENTS_FILE_DESCRIPTOR: Int = 1
CREATOR val CREATOR: Parcelable.Creator<Location>
val CREATOR: Parcelable.Creator<ServiceStop>
dateTimeZone val Location.dateTimeZone: DateTimeZone
exact open var exact: Boolean
favouriteSortOrderIndex open var favouriteSortOrderIndex: Int
FOURSQUARE val FOURSQUARE: String = "foursquare"
GOOGLE val GOOGLE: String = "google"
id open var id: String
isFavourite open var isFavourite: Boolean
lat open var lat: Double
LOCAL val LOCAL: String = "local"
locationClass open var locationClass: String
locationType open var locationType: Int
lon open var lon: Double
mId open var mId: Long
modeIdentifiers open var modeIdentifiers: List<String>
name open var name: String
NO_BEARING val NO_BEARING: Int = 2147483647
PARCELABLE_WRITE_RETURN_VALUE val PARCELABLE_WRITE_RETURN_VALUE: Int = 1
phoneNumber open var phoneNumber: String
popularity open var popularity: Int
ratingCount open var ratingCount: Int
ratingImageUrl open var ratingImageUrl: String
region open var region: String
relativeArrival @SerializedName(value = "relativeDeparture")
@Nullable
@get:Nullable
open var relativeArrival: Long
relativeDeparture @SerializedName(value = "relativeArrival")
@Nullable
@get:Nullable
open var relativeDeparture: Long
routes val routes: List<RouteDetails>
shortName @SerializedName(value = "shortName")
@Nullable
@get:Nullable
open var shortName: String
source open var source: String
timeZone open var timeZone: String
TRIPGO val TRIPGO: String = "tripgo"
Source
type open var type: StopType
This gets initialized lazily.
TYPE_CALENDAR val TYPE_CALENDAR: Int = 4
Location comes from users calendar
TYPE_CONTACT val TYPE_CONTACT: Int = 5
Location comes from a contact in the users address book
TYPE_CURRENT_LOCATION val TYPE_CURRENT_LOCATION: Int = 9
TYPE_E_BIKE val TYPE_E_BIKE: Int = 10
TYPE_HISTORY val TYPE_HISTORY: Int = 3
Location comes from previous search/geocoding history or long-pressed
TYPE_HOME val TYPE_HOME: Int = 7
Location is info from the users personal contact card (home/work address etc)
TYPE_PERSONAL val TYPE_PERSONAL: Int = 6
Location is info from the users personal contact card (home/work address etc)
TYPE_SCHEDULED_STOP val TYPE_SCHEDULED_STOP: Int = 1
The location is a scheduled stop
TYPE_SCHOOL val TYPE_SCHOOL: Int = 11
TYPE_SERVICE_STOP val TYPE_SERVICE_STOP: Int = 2
Location is a stop on a user's trip
TYPE_UNKNOWN val TYPE_UNKNOWN: Int = -1
No known location type
TYPE_W3W val TYPE_W3W: Int = 9
What3Words type
TYPE_WORK val TYPE_WORK: Int = 8
url open var url: String
w3w open var w3w: String
w3wInfoURL open var w3wInfoURL: String
wheelchairAccessible @SerializedName(value = "wheelchairAccessible")
@Nullable
@get:Nullable
open var wheelchairAccessible: Boolean
withExternalApp open var withExternalApp: Boolean
ZERO_LAT val ZERO_LAT: Double = 0.0
ZERO_LON val ZERO_LON: Double = 0.0

Functions

Name Summary
departureSecs open fun departureSecs(): Long
describeContents abstract fun describeContents(): Int
open fun describeContents(): Int
distanceTo fun distanceTo(location: Location): Int
equals open fun equals(o: Any): Boolean
equalsByLatLon fun equalsByLatLon(_loc: Location): Boolean
fillFrom open fun fillFrom(other: Location)
getBearingTo fun getBearingTo(other: Location): Double
getBicycleAccessible abstract fun getBicycleAccessible(): Boolean
getCoordinateString fun getCoordinateString(): String
getDisplayAddress fun getDisplayAddress(): String
getDisplayName fun getDisplayName(): String
getDisplayTime open fun getDisplayTime(): Long
getNameOrApproximateAddress fun getNameOrApproximateAddress(): String
getOperators fun getOperators(): List<Operator>
getWheelchairAccessible abstract fun getWheelchairAccessible(): Boolean
hashCode open fun hashCode(): Int
hasValidCoordinates fun hasValidCoordinates(): Boolean
isApproximatelyAt fun isApproximatelyAt(other: Location): Boolean
isLooselyApproximatelyAt fun isLooselyApproximatelyAt(other: Location): Boolean
isNear fun Location.isNear(location: Location): Boolean
isNonZeroLocation fun isNonZeroLocation(): Boolean
setBicycleAccessibleAccessible open fun setBicycleAccessibleAccessible(@NullablebicycleAccessible: Boolean)
setDepartureSecs open fun setDepartureSecs(secs: Long)
setOperators fun setOperators(<set-?>: List<out Operator>)
writeToParcel abstract fun writeToParcel(p: Parcel, p1: Int)
open fun writeToParcel(out: Parcel, flags: Int)