This is a Python-based test harness which can be used to simulate a GTFS-realtime feed with trips on a frequency-based route. Specifically, it simulates arrivals on the AirBART route (obtain BART GTFS here), at the AirBART_OAK stop. For convenience, the script simulates two vehicles, which are perpetually three and seven minutes away, respectively.
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
Sort sort = new Sort(_spatialStrategy.makeDistanceValueSource(shape.getCenter()).getSortField(false)).rewrite(_searcher); |
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
{ | |
"currentTime": 1391381290937, | |
"text": "OK", | |
"data": { | |
"instanceDetails": [ | |
{ | |
"contactEmail": "onebusaway@kurt-p7-1539", | |
"instanceName": "OneBusAway on kurt-p7-1539", | |
"twitterUrl": "", | |
"language": "en-US", |
NewerOlder