PTRouteSegment

PTRouteSegment object.

Constructors

Link copied to clipboard
constructor(address: Long)
constructor(address: Long, isRef: Boolean)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Agency Fare URL

Link copied to clipboard

Agency Name

Link copied to clipboard

Agency Phone

Link copied to clipboard

Agency URL

Link copied to clipboard

Arrival Delay in seconds

Link copied to clipboard

Arrival Time

Link copied to clipboard

Number of alerts for this PT information.

Link copied to clipboard

Departure Delay in seconds

Link copied to clipboard

Departure Time

Link copied to clipboard

Geographic area of the route. The geographic area is the smallest rectangle that can be drawn around the route.

Link copied to clipboard

Route instructions list.

Link copied to clipboard

Line Block ID

Link copied to clipboard

Line Color

Link copied to clipboard

Line From

Link copied to clipboard

Line Text Color

Link copied to clipboard

Line Towards

Link copied to clipboard
val name: String?

Name

Link copied to clipboard

Platform Code

Link copied to clipboard

Realtime Status

Link copied to clipboard

Route URL

Link copied to clipboard

Short name

Link copied to clipboard

Summary of the route segment.

Link copied to clipboard

Length in meters and estimated travel time in seconds for the route / route segment

Link copied to clipboard

Transit Type

Link copied to clipboard

List of waypoints. The waypoints are ordered like: departure, first waypoint, ..., destination. Only the route can have intermediate waypoints. The segments have only departure and destination.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getAlert(index: Int): PTAlert?

Get alert specified by index.

Link copied to clipboard
external fun hasBicycleSupport(): Boolean

Has Bicycle Support

Link copied to clipboard
external fun hasIncursCosts(): Boolean

Method to check if traveling the route or route segment incurs cost to the user.

Link copied to clipboard

Has Wheelchair Support

Link copied to clipboard
external fun isCommon(): Boolean

Check if this segment is of common type.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
external fun isSignificant(): Boolean

Return true if this is significant. (worth showing information about it)

Link copied to clipboard
external fun isStationWalk(): Boolean

Check if this is a station walk.

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun stayOnSameTransit(): Boolean

Stay on same Transit