-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from opentripplanner/dev
Next release
- Loading branch information
Showing
41 changed files
with
6,966 additions
and
316 deletions.
There are no files selected for viewing
4,456 changes: 4,456 additions & 0 deletions
4,456
__tests__/components/viewers/__snapshots__/stop-viewer.js.snap
Large diffs are not rendered by default.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
__tests__/components/viewers/mock-otp-transit-index-data-stop-9860-48-hr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"rsn": "20", | ||
"code": "9860", | ||
"name": "W Burnside & SW 18th", | ||
"agencyName": "TriMet", | ||
"url": "http://trimet.org/#tracker/stop/9860", | ||
"lon": -122.689717, | ||
"amenities": [ | ||
"Crosswalk near stop", | ||
"Curb ramp near stop", | ||
"Pavement at back door", | ||
"Pavement at front door", | ||
"Schedule display", | ||
"Sidewalk at stop", | ||
"Traffic signal" | ||
], | ||
"mode": "BUS", | ||
"lat": 45.522919, | ||
"type": 3, | ||
"id": "TriMet:9860", | ||
"desc": "Eastbound stop in Portland (Stop ID 9860)", | ||
"routes": [ | ||
{ | ||
"agencyName": "TriMet", | ||
"sortOrderSet": true, | ||
"mode": "BUS", | ||
"longName": "Burnside/Stark", | ||
"shortName": "20", | ||
"type": 3, | ||
"id": "TriMet:20", | ||
"sortOrder": 2600 | ||
} | ||
], | ||
"stopTimes": [ | ||
{ | ||
"pattern": { | ||
"id": "TriMet:20:1:04", | ||
"desc": "20 to Gresham Transit Center (TriMet:8199) from Beaverton Transit Center (TriMet:9978) express", | ||
"headsign": "Gresham TC" | ||
}, | ||
"times": [ | ||
{ | ||
"stopId": "TriMet:9860", | ||
"stopIndex": 38, | ||
"stopCount": 132, | ||
"scheduledArrival": 175860, | ||
"scheduledDeparture": 175860, | ||
"realtimeArrival": 175860, | ||
"realtimeDeparture": 175860, | ||
"arrivalDelay": 0, | ||
"departureDelay": 0, | ||
"timepoint": true, | ||
"realtime": false, | ||
"realtimeState": "SCHEDULED", | ||
"serviceDay": 1565161200, | ||
"tripId": "TriMet:9230375", | ||
"blockId": "2041", | ||
"headsign": "Gresham TC" | ||
} | ||
] | ||
} | ||
], | ||
"stopTimesLastUpdated": 1565248650040 | ||
} |
163 changes: 163 additions & 0 deletions
163
__tests__/components/viewers/mock-otp-transit-index-data-stop-9860.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
{ | ||
"rsn": "20", | ||
"code": "9860", | ||
"name": "W Burnside & SW 18th", | ||
"agencyName": "TriMet", | ||
"url": "http://trimet.org/#tracker/stop/9860", | ||
"lon": -122.689717, | ||
"amenities": [ | ||
"Crosswalk near stop", | ||
"Curb ramp near stop", | ||
"Pavement at back door", | ||
"Pavement at front door", | ||
"Schedule display", | ||
"Sidewalk at stop", | ||
"Traffic signal" | ||
], | ||
"mode": "BUS", | ||
"lat": 45.522919, | ||
"type": 3, | ||
"id": "TriMet:9860", | ||
"desc": "Eastbound stop in Portland (Stop ID 9860)", | ||
"routes": [ | ||
{ | ||
"agencyName": "TriMet", | ||
"sortOrderSet": true, | ||
"mode": "BUS", | ||
"longName": "Burnside/Stark", | ||
"shortName": "20", | ||
"type": 3, | ||
"id": "TriMet:20", | ||
"sortOrder": 2600 | ||
} | ||
], | ||
"stopTimes": [ | ||
{ | ||
"pattern": { | ||
"id": "TriMet:20:1:04", | ||
"desc": "20 to Gresham Transit Center (TriMet:8199) from Beaverton Transit Center (TriMet:9978) express", | ||
"headsign": "Gresham TC" | ||
}, | ||
"times": [ | ||
{ | ||
"stopId": "TriMet:9860", | ||
"stopIndex": 38, | ||
"stopCount": 132, | ||
"scheduledArrival": 89460, | ||
"scheduledDeparture": 89460, | ||
"realtimeArrival": 89460, | ||
"realtimeDeparture": 89460, | ||
"arrivalDelay": 0, | ||
"departureDelay": 0, | ||
"timepoint": true, | ||
"realtime": false, | ||
"realtimeState": "SCHEDULED", | ||
"serviceDay": 1565161200, | ||
"tripId": "TriMet:9230375", | ||
"blockId": "2041", | ||
"headsign": "Gresham TC" | ||
}, | ||
{ | ||
"stopId": "TriMet:9860", | ||
"stopIndex": 38, | ||
"stopCount": 132, | ||
"scheduledArrival": 93120, | ||
"scheduledDeparture": 93120, | ||
"realtimeArrival": 93120, | ||
"realtimeDeparture": 93120, | ||
"arrivalDelay": 0, | ||
"departureDelay": 0, | ||
"timepoint": true, | ||
"realtime": false, | ||
"realtimeState": "SCHEDULED", | ||
"serviceDay": 1565161200, | ||
"tripId": "TriMet:9230376", | ||
"blockId": "2043", | ||
"headsign": "Gresham TC" | ||
}, | ||
{ | ||
"stopId": "TriMet:9860", | ||
"stopIndex": 38, | ||
"stopCount": 132, | ||
"scheduledArrival": 96780, | ||
"scheduledDeparture": 96780, | ||
"realtimeArrival": 96780, | ||
"realtimeDeparture": 96780, | ||
"arrivalDelay": 0, | ||
"departureDelay": 0, | ||
"timepoint": true, | ||
"realtime": false, | ||
"realtimeState": "SCHEDULED", | ||
"serviceDay": 1565161200, | ||
"tripId": "TriMet:9230377", | ||
"blockId": "2049", | ||
"headsign": "Gresham TC" | ||
} | ||
] | ||
}, | ||
{ | ||
"pattern": { | ||
"id": "TriMet:20:1:01", | ||
"desc": "20 to Gresham Transit Center (TriMet:2253) from Beaverton Transit Center (TriMet:9978) express", | ||
"headsign": "Gresham TC" | ||
}, | ||
"times": [ | ||
{ | ||
"stopId": "TriMet:9860", | ||
"stopIndex": 38, | ||
"stopCount": 132, | ||
"scheduledArrival": 13980, | ||
"scheduledDeparture": 13980, | ||
"realtimeArrival": 13980, | ||
"realtimeDeparture": 13980, | ||
"arrivalDelay": 0, | ||
"departureDelay": 0, | ||
"timepoint": true, | ||
"realtime": false, | ||
"realtimeState": "SCHEDULED", | ||
"serviceDay": 1565247600, | ||
"tripId": "TriMet:9230305", | ||
"blockId": "2067", | ||
"headsign": "Gresham TC" | ||
}, | ||
{ | ||
"stopId": "TriMet:9860", | ||
"stopIndex": 38, | ||
"stopCount": 132, | ||
"scheduledArrival": 17580, | ||
"scheduledDeparture": 17580, | ||
"realtimeArrival": 17580, | ||
"realtimeDeparture": 17580, | ||
"arrivalDelay": 0, | ||
"departureDelay": 0, | ||
"timepoint": true, | ||
"realtime": false, | ||
"realtimeState": "SCHEDULED", | ||
"serviceDay": 1565247600, | ||
"tripId": "TriMet:9230306", | ||
"blockId": "2034", | ||
"headsign": "Gresham TC" | ||
}, | ||
{ | ||
"stopId": "TriMet:9860", | ||
"stopIndex": 38, | ||
"stopCount": 132, | ||
"scheduledArrival": 19020, | ||
"scheduledDeparture": 19020, | ||
"realtimeArrival": 19020, | ||
"realtimeDeparture": 19020, | ||
"arrivalDelay": 0, | ||
"departureDelay": 0, | ||
"timepoint": true, | ||
"realtime": false, | ||
"realtimeState": "SCHEDULED", | ||
"serviceDay": 1565247600, | ||
"tripId": "TriMet:9230307", | ||
"blockId": "2069", | ||
"headsign": "Gresham TC" | ||
} | ||
] | ||
} | ||
], | ||
"stopTimesLastUpdated": 1565248650040 | ||
} |
Oops, something went wrong.