gis-tools-ts - v0.6.0
    Preparing search index...

    Class GTFSRealtimeModification

    A Modification message replaces a span of n stop times from each affected trip starting at start_stop_selector.

    Index

    Constructors

    • Parameters

      • pbf: PbfReader

        The Protobuf object to read from

      • end: number

        The end position of the message in the buffer

      Returns GTFSRealtimeModification

    Properties

    endStopSelector?: GTFSRealtimeStopSelector

    The stop selector of the last stop of the original trip that is to be affected by this modification. The selection is inclusive, so if only one stop_time is replaced by that modification, start_stop_selector and end_stop_selector must be equivalent. If no stop_time is replaced, end_stop_selector must not be provided. It's otherwise required.

    lastModifiedTime?: Date

    This timestamp identifies the moment when the modification has last been changed. In POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).

    propagatedModificationDelay: number = 0

    The number of seconds of delay to add to all departure and arrival times following the end of this modification. If multiple modifications apply to the same trip, the delays accumulate as the trip advances.

    replacementStops: GTFSRealtimeReplacementStop[] = []

    A list of replacement stops, replacing those of the original trip. The length of the new stop times may be less, the same, or greater than the number of replaced stop times.

    serviceAlertId?: string

    An id value from the FeedEntity message that contains the Alert describing this Modification for user-facing communication.

    startStopSelector?: GTFSRealtimeStopSelector

    The stop selector of the first stop_time of the original trip that is to be affected by this modification. Used in conjuction with end_stop_selector. start_stop_selector is required and is used to define the reference stop used with travel_time_to_stop.