Skip to content

Instantly share code, notes, and snippets.

Sort sort = new Sort(_spatialStrategy.makeDistanceValueSource(shape.getCenter()).getSortField(false)).rewrite(_searcher);
@kurtraschke
kurtraschke / README.md
Last active August 29, 2015 14:00
GTFS-realtime test harness for frequency-based trips

GTFS-realtime test harness for frequency-based trips

Introduction

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.

Setup

{
"currentTime": 1391381290937,
"text": "OK",
"data": {
"instanceDetails": [
{
"contactEmail": "onebusaway@kurt-p7-1539",
"instanceName": "OneBusAway on kurt-p7-1539",
"twitterUrl": "",
"language": "en-US",