gtfs-rb

Generated JavaScript library based on the GTFS Realtime protocol buffer specification

Usage no npm install needed!

<script type="module">
  import gtfsRb from 'https://cdn.skypack.dev/gtfs-rb';
</script>

README

Node.js GTFS Realtime Bindings

This package is based on Google’s older gtfs-realtime-bindings and is now supported by Cyberscape

This package provides JavaScript classes generated from the GTFS Realtime Protocol Buffer specification. These classes will allow you to parse a binary Protocol Buffer GTFS Realtime data feed into JavaScript objects.

We use the protobuf.js library for JavaScript Protocol Buffer support.

Install

To use the gtfs-rb classes in your own project, you need to first install our Node.js npm package:

npm install gtfs-rb

Example Code

See the examples

Note

For more details on the naming conventions for the Javascript classes generated from the gtfs-realtime.proto, check out the protobuf.js project which we use to handle our Protocol Buffer serialization.

Contributing

Please feel free to open a pull request so we can have more examples and better documentation on this project!

LICENSE

MIT © 2019 Cyberscape
Apache 2.0 © 2015 Alphabet Inc. (formerly Google Inc.)