|
|
%!s(int64=4) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| data | %!s(int64=4) %!d(string=hai) anos | |
| icon | %!s(int64=4) %!d(string=hai) anos | |
| rtjs | %!s(int64=4) %!d(string=hai) anos | |
| README.md | %!s(int64=4) %!d(string=hai) anos | |
| geojson_from_gtfs_txt.py | %!s(int64=4) %!d(string=hai) anos | |
| gtfs-realtime-succinct.proto | %!s(int64=4) %!d(string=hai) anos | |
| gtfs-realtime.proto | %!s(int64=4) %!d(string=hai) anos | |
| gtfs-realtime_pb.js | %!s(int64=4) %!d(string=hai) anos | |
| gtfs_example_read.py | %!s(int64=4) %!d(string=hai) anos | |
| gtfs_example_write.py | %!s(int64=4) %!d(string=hai) anos | |
| pb-compile | %!s(int64=4) %!d(string=hai) anos | |
| pb2json.js | %!s(int64=4) %!d(string=hai) anos | |
| ridelogic_avls.py | %!s(int64=4) %!d(string=hai) anos | |
| synthetic_avls_source.py | %!s(int64=4) %!d(string=hai) anos | |
This directory is for experimental code
To create a protobuf to JSON converter:
browserify pb2json.js --s pb2json > pb2jsonlib.js
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
pip3 isntall gtfs-realtime-bindings
sudo apt-get install -y python3-protobuf libprotoc-dev libprotobuf-dev protobuf-compiler python-protobuf