Hi Paul,
Thanks for reaching out. If you are receiving both GTFS and GTFS-Realtime Trip Updates both the 511 system, you should not be experiencing this. This issue will get presented when your static and real-time data sources are different.
511 system uses a regional stop code framework in order to create a unique stop IDs scheme across the entire region. I would recommend that you use the GTFS feeds from the api.511.org source using the http://api.511.org/transit/datafeeds?api_key={API_KEY}&operator_id={same value as the agency parameter used in the TripUpdates API}
--Nisar
From: 'Paul Bellora' via 511SFBayDeveloperResources <511sfbaydevel...@googlegroups.com>
Sent: Wednesday, March 17, 2021 6:27 PM
To: 511SFBayDeveloperResources <511sfbaydevel...@googlegroups.com>
Subject: [511SFBayDeveloperResources] GTFS-RT trip updates for MUNI and VTA have "offset" stop IDs
*External Email*
--
You received this message because you are subscribed to the Google Groups "511SFBayDeveloperResources" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
511sfbaydeveloperre...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/511sfbaydeveloperresources/f4543206-f137-4f23-82ec-ca96f78f6ea6n%40googlegroups.com.
Hi Paul,
What is your source of GTFS feeds? Could you please confirm if you are using 511 recommended datafeed API for the GTFS feeds. If not, following are the URLs to obtain GTFS feeds for both the agencies that will match with GTFS-RT:
Let us know if you still see the discrepancy in stopIDs.
Regards,
Kapeel Daryani.
From: 'Paul Bellora' via 511SFBayDeveloperResources <511sfbaydevel...@googlegroups.com>
Sent: Wednesday, March 17, 2021 6:27 PM
To: 511SFBayDeveloperResources <511sfbaydevel...@googlegroups.com>
Subject: [511SFBayDeveloperResources] GTFS-RT trip updates for MUNI and VTA have "offset" stop IDs
*External Email*
Hi, I recently set up my app to start consuming trip updates for MUNI and VTA using the following feeds:
--
I apologize, following are the corrected URLs:
http://api.511.org/transit/datafeeds?api_key=[API_KEY]&operator_id=SF
http://api.511.org/transit/datafeeds?api_key=[API_KEY]&operator_id=SC
Regards,
Kapeel Daryani.
To view this discussion on the web visit https://groups.google.com/d/msgid/511sfbaydeveloperresources/DM6PR17MB31631A35A68B972C8F0BE8E1A5699%40DM6PR17MB3163.namprd17.prod.outlook.com.
Hi Paul,
Once you start using 511 provided GTFS feeds there will be no concern of offset in stopIDs. They will match completely between GTFS and GTFS-RT feeds.
To view this discussion on the web visit https://groups.google.com/d/msgid/511sfbaydeveloperresources/32491170-627b-47d9-8461-8686968d3009n%40googlegroups.com.
In addition to Kapeel’s note below, change can happen at the operator end, which we don’t have any control over. If an operator decides to change its stop ID scheme, your assumption will not hold. But, we can ensure that the stop ID between GTFS and GTFS-RT, both sourced from 511, will always match.
--Nisar
To view this discussion on the web visit https://groups.google.com/d/msgid/511sfbaydeveloperresources/DM6PR17MB31637A35DC35B6761469D55BA5699%40DM6PR17MB3163.namprd17.prod.outlook.com.