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

    Class PTTrip

    This class represents a public transport trip.

    It contains the route, agency, trip index, trip date, departure time, a flag indicating if real-time information is available, an optional cancellation flag, delay in minutes, a list of stop times, stop index, stop platform code, and flags indicating if wheelchair access and bike allowance are available.

    The trip is associated with a specific route and agency.

    Index

    Constructors

    • Constructor for the PTTrip class.

      Parameters

      • params: {
            agency: PTAgency;
            delayMinutes?: number;
            departureTime?: Date;
            hasRealtime: boolean;
            isBikeAllowed: boolean;
            isCancelled?: boolean;
            isWheelchairAccessible: boolean;
            route: PTRouteInfo;
            stopIndex: number;
            stopPlatformCode?: string;
            stopTimes: PTStopTime[];
            tripDate?: Date;
            tripIndex: number;
        }

      Returns PTTrip

    Properties

    agency: PTAgency

    The agency associated with the trip.

    delayMinutes?: number

    The delay in minutes. This can be null if hasRealtime is false.

    departureTime?: Date

    The departure time of the trip.

    hasRealtime: boolean

    A flag indicating if real-time information is available.

    isBikeAllowed: boolean

    A flag indicating if bikes are allowed on the trip.

    isCancelled?: boolean

    An optional flag indicating if the trip is cancelled.

    isWheelchairAccessible: boolean

    A flag indicating if the stop is wheelchair accessible.

    The route associated with the trip.

    stopIndex: number

    The index of the stop in the trip. This is the index of the stop in the list of stop times.

    stopPlatformCode?: string

    The platform code of the stop.

    stopTimes: PTStopTime[]

    A list of stop times associated with the trip.

    tripDate?: Date

    The date of the trip.

    tripIndex: number

    The index of the trip.

    Methods