Coder Social home page Coder Social logo

cscape / gtfs-rb Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 78 KB

GTFS Realtime bindings generator for Node.js (adapted from Google’s old npm package)

License: Other

JavaScript 100.00%
gtfs gtfs-realtime gtfs-realtime-data gtfs-rt javascript nodejs protobuf protocol-buffers transit

gtfs-rb's Introduction

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.)

gtfs-rb's People

Contributors

ciolt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

gtfs-rb's Issues

Cannot read property 'decode' of undefined

When attempting to use gtfs-rb, on this line: let feed = GtfsRealtimeBindings.FeedMessage.decode(body);, I get the error TypeError: Cannot read property 'decode' of undefined. This actually wasn't happening with the other repo, but I was getting null values for important information with that one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.