@magiclane/maps-sdk
    Preparing search index...

    Class PTStopTime

    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.

    Index

    Constructors

    • Create a PTStopTime.

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

      Parameters

      • params: {
            coordinates: Coordinates;
            delay: number;
            departureTime?: Date;
            hasRealtime: boolean;
            isBefore: boolean;
            stopDetails: number;
            stopName: string;
        }

        Stop time parameters

      Returns PTStopTime

    Properties

    coordinates: Coordinates

    WGS84 coordinates for this stop.

    delay: number

    Delay in seconds (may be zero).

    departureTime?: Date

    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.

    stopName: string

    Stop display name.

    Accessors

    • get isWheelchairFriendly(): boolean

      True when wheelchair access is available for this stop.

      Returns boolean

    Methods