Hello,
I was trying to figure out why my app isn't displaying realtime data for commuter rail stops correctly and I noticed the stop ids in the GTFS data don't match the V3 API. For example:
From stop_times.txt
CR-595946-1610,16:45:00,16:45:00,NEC-2276-03,100,,0,0,0,,,
From /mbta/predictions?filter%5Broute%5D=CR-Needham&include=trip,vehicle,vehicle.trip&X-Api-Key=REDACTED
{
"attributes": {
"arrival_time": "2023-08-19T16:43:00-04:00",
"departure_time": "2023-08-19T16:43:00-04:00",
"direction_id": 1,
"schedule_relationship": null,
"status": null,
"stop_sequence": 100,
"track": "3"
},
"id": "prediction-CR-595946-1610-NEC-2276-03-100",
"relationships": {
"route": {
"data": {
"id": "CR-Needham",
"type": "route"
}
},
"stop": {
"data": {
"id": "NEC-2276",
"type": "stop"
}
},
"trip": {
"data": {
"id": "CR-595946-1610",
"type": "trip"
}
},
"vehicle": {
"data": {
"id": "1813",
"type": "vehicle"
}
}
},
"type": "prediction"
},
You can see that they're the same trip id, but GTFS shows NEC-2276-03 as the stop id and the API shows NEC-2276. Is this expected?
Thanks,
Jeff