-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow remapping of agency_ids in GTFS-rt service alerts #114
Comments
fix #114 - Implementing agency id remapping in realtime service alerts
I'm re-opening, as it looks like we missed re-mapping the agency_ids in the situationIds list. For example, see the following REST API request: The response:
You can see that the agencyId in the @cagryInside Could you please take a look and submit another PR fixing this? Thanks! |
Looks like the above was a data-sources.xml config issue (there was still a reference to |
…ill-show-trips-that-are-in-the-past added ArrivalAndDepartureFilterByPredictedArrivalTime to filter the b…
We need to be able to re-map
agency_ids
that appear in GTFS-rt Service Alerts to match re-mapping done with GTFS data. Currently, the GTFS-rt spec only allows theagency_id
field to be supplied in Service Alerts, so this only applies to Service Alerts.Currently, the
GtfsRealtimeSource
config indata-sources.xml
looks like this:The
agencyId
property above is used to associate the GTFS-rt feeds with a particular agencyId from the GTFS data. However, currently theagencyId
field in the GTFS-rt Service Alerts feed takes precedence, and as a result OBA can't match the alerts to the correct agency. Additionally, the GTFS-rt specs allow more than one agency to be represented in the same Service Alerts feed (hence theagency_id
field), so we actually need a way to remap multiple agencyIds in the same Service Alerts feed.We propose to implement this remapping in the
data-sources.xml
config file as a newalertAgencyIdMap
property forGtfsRealtimeSource
:For example, here's a GTFS-rt Service Alerts feed:
We need to remap the
agency_id
of1
toPSTA
. We would configure this as follows:@cagryInside has tested this implementation and it works. He'll submit a PR shortly. Any feedback is welcome.
@sheldonabrown This is a solution to the issue we discussed via email.
The text was updated successfully, but these errors were encountered: