Hi there,
I've traced an issue in my app to stop_sequence values not matching in the static and RT feeds. This appears to be affecting the Red, Orange, and (all) Green lines; I'm not seeing it on the Blue line or any bus service.
Essentially, the static feed is providing sequential stop_sequence values, e.g. 1, 2, 3 ... 10, while the ones in the GTFS-rt feeds are producing a different set of values, e.g. 1, 10, 20, 30 ... 120, 180, 190 ... 220. I'm seeing this in trip_update.stop_time_update and vehicle_position.current_stop_sequence.
Here's an example with trip ID 51849905 (Red line to Braintree 22:30 today, Saturday). I've removed some fields for brevity:
"stop_time_update": [
{
"stop_sequence": 1,
"stop_id": "70061",
"departure": {
"time": 1660444260,
"uncertainty": 360
},
},
{
"stop_sequence": 10,
"stop_id": "70063",
"departure": {
"time": 1660444576,
"uncertainty": 360
},
},
{
"stop_sequence": 20,
"stop_id": "70065",
"departure": {
"time": 1660444697,
"uncertainty": 360
},
},
{
"stop_sequence": 30,
"stop_id": "70067",
"arrival": {
"time": 1660444808,
"uncertainty": 360
},
"departure": {
"time": 1660444874,
"uncertainty": 360
},
},
You can see the produced values are 1, 10, 20, 30, but the expected values from the static feed are 1, 2, 3, 4. This results in a failure to match the entities to the corresponding static entries.
Please let me know if there's any other information I can provide, I am happy to assist with resolving this to the extent I can.
Thank you!
---
Kona Farry (he/him)
Creator and Developer
Pantograph Transit Tracker