Home > @magiclane/maps-sdk > PTTrip
PTTrip class
A scheduled public transport trip instance.
Represents a single scheduled run of a route with times, delays, cancellation and accessibility metadata.
Maps & 3D Scene
Signature:
export declare class PTTrip Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Create a PTTrip. API users do not typically create instances of this class directly. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
The agency operating the trip. | |||
|
number |
(Optional) Delay in minutes (may be null). | ||
|
Date |
(Optional) Departure time (UTC flag, local value). **WARNING:** Returned as a Date with UTC flag but representing local time; use TimezoneService to convert if needed. | ||
|
boolean |
Whether realtime information is available. | ||
|
boolean |
Indicates whether bikes are allowed on the trip. | ||
|
boolean |
(Optional) Optional cancellation flag. | ||
|
boolean |
Wheelchair accessibility flag. | ||
|
The route associated with the trip. | |||
|
number |
Index of the current/selected stop within stopTimes. | ||
|
string |
(Optional) Platform code for the stop (may be null). | ||
|
The list of stop times for this trip. | |||
|
|
Date |
(Optional) Trip date (UTC flag, local value). **WARNING:** Returned as a Date with UTC flag but representing local time; use TimezoneService to convert if needed. | |
|
|
number |
Internal trip index. |