Ver código fonte

updating notes and minor tweaks

* recompiled protobuf json
* added a 'quickstart' test to help get things started (and to keep notes on development)
abram 4 anos atrás
pai
commit
6661e0b221
3 arquivos alterados com 1523 adições e 1776 exclusões
  1. 26 0
      experimental/README.md
  2. 1496 1775
      experimental/gtfs-realtime_pb.js
  3. 1 1
      experimental/gtfs_example_read.py

+ 26 - 0
experimental/README.md

@@ -11,3 +11,29 @@ 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
+```

Diferenças do arquivo suprimidas por serem muito extensas
+ 1496 - 1775
experimental/gtfs-realtime_pb.js


+ 1 - 1
experimental/gtfs_example_read.py

@@ -1,4 +1,4 @@
-#!/usr/bin/python3.6
+#!/usr/bin/python3
 #
 
 from google.transit import gtfs_realtime_pb2