Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gavinr/gtfs-realtime-pbf-js-module
GTFS proto schema to JS Module using the PBF package
https://github.com/gavinr/gtfs-realtime-pbf-js-module
gtfs gtfs-realtime pbf
Last synced: 2 months ago
JSON representation
GTFS proto schema to JS Module using the PBF package
- Host: GitHub
- URL: https://github.com/gavinr/gtfs-realtime-pbf-js-module
- Owner: gavinr
- License: mit
- Created: 2020-04-05T20:06:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T20:26:04.000Z (over 4 years ago)
- Last Synced: 2024-10-06T10:42:14.102Z (3 months ago)
- Topics: gtfs, gtfs-realtime, pbf
- Language: JavaScript
- Size: 8.79 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# GTFS Realtime - PBF JavaScript Module
I took the [published GTFS Realtime .proto schema file](https://developers.google.com/transit/gtfs-realtime/gtfs-realtime-proto) and ran it through the [PBF package](https://www.npmjs.com/package/pbf) and am hosting it on a CDN so you don't have to!
## Use them
### NPM
```
npm i gtfs-realtime-pbf-js-module
```### CDN
```
```
([example of usage](https://codepen.io/gavinr/pen/XWbzGMW?editors=0010))
## How these were generated
1. Download the [published GTFS Realtime .proto schema file](https://developers.google.com/transit/gtfs-realtime/gtfs-realtime-proto)
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`