0

Reading through the GTFS-Realtime, I came across these code samples, with Javascript in the list.

The gtfs-realtime-bindings module happens to read gtfs.zip files properly and interpret them appropriately.

I want to use the package in my angular project. How can I?

2
  • what does your angular project do? Commented Mar 31, 2016 at 12:26
  • @vcp Takes a gtfs zip file and outputs the trip updates for use in a web app. Commented Mar 31, 2016 at 18:08

1 Answer 1

1

gtfs-realtime-bindings is available as node module and you can use nodejs and angularjs in the same project, see i.e. https://scotch.io/tutorials/creating-a-single-page-todo-app-with-node-and-angular <- nice

In this thread is a general way how to include node modules in angular (extract the javascript or browserify): Using node module in angularjs?

https://angularjs.de/artikel/angularjs-browserify

Sign up to request clarification or add additional context in comments.

1 Comment

Got to use browserify. However, facing issues with decoding a gtfs file. Will open a new question for that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.