Skip to content

Commit

Permalink
Merge pull request #37 from Intersection/TRAN-5521
Browse files Browse the repository at this point in the history
TRAN-5521 : Real-time NJT bus arrivals data in PATH org are showing the wrong route number
  • Loading branch information
piyushgovani authored Nov 17, 2021
2 parents 175c2ce + 9014e34 commit 43a30f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gtfs_realtime_translators/translators/njt_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __make_trip_updates(cls, data, filtered_stops):
# Intersection Extensions
headsign = item_entry['busheader']
trip_id = item_entry['gtfs_trip_id']
route_id = item_entry['route']
route_id = item_entry['gtfs_route_id']
if item_entry.get('STOP', None) is not None:
stops = item_entry['STOP']

Expand Down
2 changes: 1 addition & 1 deletion test/test_njt_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_njt_data(njt_bus):

assert message.header.gtfs_realtime_version == FeedMessage.VERSION
assert entity.id == '1'
assert trip_update.trip.route_id == '64J'
assert trip_update.trip.route_id == '165'
assert trip_update.trip.trip_id == '22899'

assert stop_time_update.stop_id == '2916'
Expand Down

0 comments on commit 43a30f4

Please sign in to comment.