On Sunday, July 19, 2020 2:21:12 AM CEST, Harmit Khera wrote:
> 1) What is the best way to figure the time when the vehicle Actually
> crossed a scheduled stop on a trip?
1. Take the shapes of the route from GTFS (or recreate it).
2. Take the vehiclePositions GTFS-RT feed.
3. Project the vehiclePosition on the route (some intelligence would be
required if a route has a loop)
4. By the projection you know the shape distance traveled, which is also
available from the GTFS feed.
> 2) How do I find the next stop on a trip or the current stop if the current
> stop sequence is not always populated?
Load the GTFS feed in parallel and infer the values.
--
Stefan