Realtime Tracking between trips

Hi,

Is there a way to determine a buses position between trips.

To be clear the bus arrives at the end TSN and ends a trip at location x and proceeds to the start TSN of the next trip at location Y.

It is the transition between these two trips I would like to be able track.

Many thanks

Kind regards

Brian

Hi Brian, trips are linked in the vehicle position feed with the “performing_prior_trip” attribute, so that users can see the incoming vehicle position of the previous trip if they are at the first stop of a new trip. Is this what you are after?

Hi David,

Thanks you for your reply. This is a single entity from the feed at

api.transport.nsw.gov.au/v1/gtfs/vehiclepos/buses

entity {
id: “43054_180763319_2459_492_1”
vehicle {
trip {
trip_id: “1279963”
start_time: “15:52:00”
start_date: “20211001”
schedule_relationship: SCHEDULED
route_id: “2459_492”
}
position {
latitude: -33.948822
longitude: 151.1275
bearing: 35.0
speed: 0.0
}
timestamp: 1633071059
congestion_level: RUNNING_SMOOTHLY
vehicle {
id: “43054_180763319_2459_492_1”
[transit_realtime.tfnsw_vehicle_descriptor] {
air_conditioned: true
wheelchair_accessible: 1
vehicle_model: “Scania~K280UB~Bustech~VST”
special_vehicle_attributes: 0
}
}
occupancy_status: FEW_SEATS_AVAILABLE
}
}
But Im struggling to find the attribute you mention, am I using the correct feed?

Kind regards

Brian

Hi Brian,
Yes that is the correct feed. If the trip is performing a prior trip it will appear as such:

entity {
  id: "8896_125796230039_2433_776_1"
  vehicle {
    trip {
      trip_id: "1366881"
      start_time: "14:10:00"
      start_date: "20211005"
      schedule_relationship: SCHEDULED
      route_id: "2433_776"
    }
    position {
      latitude: -33.7945
      longitude: 150.79036
      bearing: 190.0
      speed: 6.4
    }
    timestamp: 1633402798
    congestion_level: UNKNOWN_CONGESTION_LEVEL
    vehicle {
      id: "8896_125796230039_2433_776_1"
      [transit_realtime.tfnsw_vehicle_descriptor] {
        air_conditioned: true
        wheelchair_accessible: 1
        vehicle_model: "MAN~18310~Bustech~VST"
        performing_prior_trip: true
        special_vehicle_attributes: 0
      }
    }
    occupancy_status: MANY_SEATS_AVAILABLE
  }
}

Hi David,

Many thanks, that is perfect.

Kind regards

Brian