Home > @magiclane/maps-sdk > PTStopTime
PTStopTime class
Stop-time information for a single stop within a trip.
Contains local-time departure, delay and realtime availability flags. NOTE: departure times are returned as Date objects with UTC flag but encoded as local time; convert using TimezoneService when needed.
Maps & 3D Scene
Signature:
export declare class PTStopTime Constructors
Constructor | Modifiers | Description |
|---|---|---|
Create a PTStopTime. API users do not typically create instances of this class directly. |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
WGS84 coordinates for this stop. | |||
number | Delay in seconds (may be zero). | ||
Date | (Optional) Optional departure time. **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 | True when this stop time is before the current time. | ||
| boolean | True when wheelchair access is available for this stop. | |
string | Stop display name. |