mbus-backend
    Preparing search index...

    Represents a state or arrival at a specific stop in the routing graph. Used to trace back the path and store performance metrics.

    Index

    Constructors

    • Parameters

      • arrivalTime: number

        Time of arrival at this stop.

      • walkingDistance: number

        Cumulative walking distance in meters.

      • transferCount: number

        Number of transfers taken so far.

      • parent: Label | null = null

        The previous label in the chain (used for backtracking).

      • trip: Trip | null = null

        The trip taken to reach this state (if applicable).

      • transfer: Transfer | null = null

        The transfer used to reach this state (if applicable).

      • stop: string | null = null

        The ID of the current stop.

      • enterTime: number = 0

        Time when the passenger boarded the vehicle.

      • stopIndex: number = -1

        Index of the current stop in the trip's sequence.

      Returns Label

    Properties

    arrivalTime: number

    Time of arrival at this stop.

    enterTime: number = 0

    Time when the passenger boarded the vehicle.

    parent: Label | null = null

    The previous label in the chain (used for backtracking).

    stop: string | null = null

    The ID of the current stop.

    stopIndex: number = -1

    Index of the current stop in the trip's sequence.

    transfer: Transfer | null = null

    The transfer used to reach this state (if applicable).

    transferCount: number

    Number of transfers taken so far.

    trip: Trip | null = null

    The trip taken to reach this state (if applicable).

    walkingDistance: number

    Cumulative walking distance in meters.

    Methods

    • Determines if this label is strictly better than another label. A label dominates if it is better or equal in all criteria and strictly better in at least one.

      Parameters

      Returns boolean