Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Message: FeedEntity

GTFS-RT

NOPTIS

id

For If entity contains field trip_update, then:

  • DatedVehicleJourney.Id

For If entity contains field vehicle, then:

  • Position.Nr (where Position refers to a POSROI message)

For If entity contains field alert, then:

  • DeviationMessageVersion.Id

trip_update

See section “Message: TripUpdate”.

vehicle

See section “Message: VehiclePosition”.

alert

See section “Message: Alert”.

...

GTFS-RT

NOPTIS

trip.trip_id

If a vehicle journey exists, then VehicleJourney.Id is used.
If a vehicle journey does not exists and route_id and direction_id cannot be resolved, then DatedVehicleJourney.Id is used.

trip.route_id

Line.Gid

trip.direction_id

DirectionOfLine.DirectionCode → direction_id

  • EVEN → 0

  • ODD → 1

trip.start_time

DatedVehicleJourney.TimetabledStartDateTime

trip.start_date

DatedVehicleJourney.TimetabledStartDateTime

trip.schedule_relationship

If a DatedVehicleJourney.VehicleJourneyState exists and is canceled, then set to CANCELED.
If a vehicle journey exists then set to SCHEDULED, else ADDED.

stop_time_update.stop_id

StopPoint.Gid

stop_time_update.stop_sequence

Departure.JourneyPatternSequenceNumber
OR
Arrival.JourneyPatternSequenceNumber

stop_time_update.arrival.delay

Based on predicted arrival time and scheduled arrival time

stop_time_update.arrival.time

Arrival.ObservedDateTime or Arrival.TargetDateTime
OR
if arrival is after departure (unless last stop), then:
Departure.ObservedDateTime or Departure.TargetDateTime

stop_time_update.arrival.uncertainty

0 if Arrival.ObservedDateTime is set and is after the used departure time (or is at last stop)

stop_time_update.arrival.schedule_relationship

SKIPPED if Arrival.ArrivalState is set to canceled, else omitted

stop_time_update.departure.delay

Based on predicted departure time and scheduled departure time

stop_time_update.departure.time

Departure.ObservedDateTime or Departure.TargetDateTime
OR
if last stop then:
Arrival.ObservedDateTime or Arrival.TargetDateTime

stop_time_update.departure.uncertainty

0 if Departure.ObservedDateTime is set

stop_time_update.departure.schedule_relationship

SKIPPED if Departure.DepartureState is set to canceled, else omitted

vehicle.id

MonitoredVehicleJourney.IsAssignedToVehicleGid

timestamp

Departure.Timestamp
OR
Arrival.Timestamp

The latest timestamp overall in the list of departures and arrivals in the current trip update

...