I installed the protocol buffers package from source.
Downloaded the gtfs-realtime protobuf definition.
Followed the instructions Go protobuf instructions and ran:
protoc --go_out=. gtfs-realtime.proto
which generated gtfs-realtime.pb.go
.
#!/usr/bin/env bash | |
# Demuxes 3D videos from Nintendo 3DS into two (left and right) videos | |
# and splits the videos into image frames. | |
# REQUIRES FFMPEG, can be installed with Homebrew on Mac | |
# Install FFmpeg on ubuntu with: http://askubuntu.com/a/451158 | |
if [ $# -ne 1 ] | |
then |
.side a[href="http://www.twitch.tv/alisha12287"] { | |
position:fixed; | |
top:0; | |
left:0; | |
height:100%; | |
width:100%; | |
z-index:999999; | |
background:#000; | |
color:#fff; | |
font-size:50px; |
I installed the protocol buffers package from source.
Downloaded the gtfs-realtime protobuf definition.
Followed the instructions Go protobuf instructions and ran:
protoc --go_out=. gtfs-realtime.proto
which generated gtfs-realtime.pb.go
.
Mean difference between current and update time (in seconds): | |
Old API: 129.565789474, New API: 216.00877193 | |
Mean difference between current and update time (in seconds) by vehicle: | |
6026 - Old: 150.0, New: 237.0 | |
7404 - Old: 100.0, New: 216.0 | |
7456 - Old: 205.0, New: 272.0 | |
8927 - Old: 95.0, New: 282.0 | |
7451 - Old: 91.0, New: 177.0 | |
8930 - Old: 154.0, New: 218.0 |
header { | |
gtfs_realtime_version: "1.0" | |
timestamp: 1425858053 // 2015-03-08 18:40:53 CDT | |
} | |
entity { | |
id: "1" | |
vehicle { | |
trip { | |
trip_id: "1382602" | |
start_time: "18:39" |
application: scenic-cedar-88515 | |
version: 1 | |
runtime: go | |
api_version: go1 | |
handlers: | |
- url: /.* | |
script: _go_app |
vehicle_id,dist_traveled,speed,lon,route_id,trip_headsign,timestamp,lat,trip_id | |
2207,0.00010795798364588702,0,-97.76786,1,1-Metric/South Congress-NB,2015-09-14T18:41:25-05:00,30.189432,1474790 | |
2207,0.00010795798364588702,0,-97.76786,1,1-Metric/South Congress-NB,2015-09-14T18:43:25-05:00,30.189432,1474790 | |
2207,0.00010795798364588702,0,-97.76786,1,1-Metric/South Congress-NB,2015-09-14T18:45:24-05:00,30.189432,1474790 | |
2207,0.00010795798364588702,0,-97.76786,1,1-Metric/South Congress-NB,2015-09-14T18:47:24-05:00,30.189432,1474790 | |
2207,0.00010795798364588702,0,-97.76786,1,1-Metric/South Congress-NB,2015-09-14T18:49:24-05:00,30.189432,1474790 | |
2207,0.00010795798364588702,0,-97.76786,1,1-Metric/South Congress-NB,2015-09-14T18:51:24-05:00,30.189432,1474790 | |
2207,0.00010795798364588702,0,-97.76786,1,1-Metric/South Congress-NB,2015-09-14T18:53:24-05:00,30.189432,1474790 | |
2207,0.00012320448112642976,0,-97.76789,1,1-Metric/South Congress-NB,2015-09-14T18:55:24-05:00,30.189432,1474790 | |
2207,0.0020776656795382918,0.60000002384 |