gtfs-realtime-pbf-js-module

GTFS proto schema to JS Module using the PBF package

MIT License

Downloads
693
Stars
4
Committers
1

GTFS Realtime - PBF JavaScript Module

I took the published GTFS Realtime .proto schema file and ran it through the PBF package and am hosting it on a CDN so you don't have to!

Use them

NPM

npm i gtfs-realtime-pbf-js-module

CDN

<script src="https://unpkg.com/[email protected]/gtfs-realtime.browser.proto.js"></script>

(example of usage)

How these were generated

  1. Download the published GTFS Realtime .proto schema file
  2. npm install pbf -g
  3. pbf gtfs-realtime.proto > gtfs-realtime.browser.proto.js
  4. pbf gtfs-realtime.proto --browser > gtfs-realtime.browser.proto.js