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

(constructor)({ stopName, coordinates, hasRealtime, delay, departureTime, stopDetails, isBefore, }, input)

Create a PTStopTime.

API users do not typically create instances of this class directly.

Properties

Property

Modifiers

Type

Description

coordinates

Coordinates

WGS84 coordinates for this stop.

delay

number

Delay in seconds (may be zero).

departureTime?

Date

(Optional) Optional departure time.

**WARNING:** Returned as a Date with UTC flag but representing local time; use TimezoneService to convert if needed.

hasRealtime

boolean

Whether realtime information is available.

isBefore

boolean

True when this stop time is before the current time.

isWheelchairFriendly

readonly

boolean

True when wheelchair access is available for this stop.

stopName

string

Stop display name.