abram 6661e0b221 updating notes and minor tweaks vor 4 Jahren
..
rtjs e4ec088e00 preliminaries for gtfs js feed reading vor 4 Jahren
README.md 6661e0b221 updating notes and minor tweaks vor 4 Jahren
gtfs-realtime-succinct.proto e7e88e26c4 wip vor 4 Jahren
gtfs-realtime.proto e4ec088e00 preliminaries for gtfs js feed reading vor 4 Jahren
gtfs-realtime_pb.js 6661e0b221 updating notes and minor tweaks vor 4 Jahren
gtfs_example_read.py 6661e0b221 updating notes and minor tweaks vor 4 Jahren
gtfs_example_write.py e7e88e26c4 wip vor 4 Jahren
pb-compile e7e88e26c4 wip vor 4 Jahren
pb2json.js e7e88e26c4 wip vor 4 Jahren
ridelogic_avls.py e7e88e26c4 wip vor 4 Jahren
synthetic_avls_source.py e7e88e26c4 wip vor 4 Jahren

README.md

Experimental Development

This directory is for experimental code


To create a protobuf to JSON converter:

browserify pb2json.js --s pb2json > pb2jsonlib.js

Quick Test Setup

To get a rudimentary real time bus map, execute the following:

cd ../html/
while [ true ] ; do wget -q 'https://realtimetcatbus.availtec.com/InfoPoint/GTFS-Realtime.ashx?&Type=VehiclePosition&serverid=0' -O VehiclePosition.pb ; echo '...' ; sleep 10 ; done
cd ../html/
python3 -m http.server

And then point your web browser to http://localhost:8000


Requirements

pip3 isntall gtfs-realtime-bindings
sudo apt-get install -y python3-protobuf libprotoc-dev libprotobuf-dev protobuf-compiler python-protobuf