blinktaginc / node-gtfs-realtime Goto Github PK
View Code? Open in Web Editor NEWDownload GTFS-Realtime data as JSON. npx gtfs-realtime <url>
License: MIT License
Download GTFS-Realtime data as JSON. npx gtfs-realtime <url>
License: MIT License
Hi there - great project, I'm actually hoping to use it with BART's feed. However, the example in the README errors like so:
% npx gtfs-realtime http://api.bart.gov/gtfsrt/tripupdate.aspx
Downloading GTFS-Realtime from http://api.bart.gov/gtfsrt/tripupdate.aspx
Error: https://api.bart.gov/gtfsrt/tripupdate.aspx: 403 Forbidden
Error: https://api.bart.gov/gtfsrt/tripupdate.aspx: 403 Forbidden
[ Error: 403 Forbidden
- gtfs-realtime.js:18 gtfsRealtime
[d5e1ab7c0c5fdcf3]/[gtfs-realtime]/lib/gtfs-realtime.js:18:19
- task_queues:95 process.processTicksAndRejections
node:internal/process/task_queues:95:5
- gtfs-realtime.js:50 async setupImport
[d5e1ab7c0c5fdcf3]/[gtfs-realtime]/bin/gtfs-realtime.js:50:3
] {...
I went here: https://www.bart.gov/schedules/developers/gtfs-realtime
And checked the feed URL from BART and got https://api.bart.gov/gtfsrt/tripupdate.aspx
from them. Then tried that (https
URL rather than http
) but same issue:
% npx gtfs-realtime https://api.bart.gov/gtfsrt/tripupdate.aspx
Downloading GTFS-Realtime from https://api.bart.gov/gtfsrt/tripupdate.aspx
Error: https://api.bart.gov/gtfsrt/tripupdate.aspx: 403 Forbidden
Error: https://api.bart.gov/gtfsrt/tripupdate.aspx: 403 Forbidden
[ Error: 403 Forbidden
Is this something you've come across? I'll dig around and see if I can figure out what's causing the 403 from BART.
Hello!
I was evaluating libraries for a real-time project, saw node-gtfs might be a good beginning point and then noticed the start of this project! The project would be consuming GTFS-rt data and it looks like you've got a base going here. I wanted to check before diving in if y'all would be open to PRs that further develop the tools available to folks who would use node-gtfs-realtime as a library, things like processing and query tools, Typescript bindings, etc.
Thanks so much!
I just started poking at the BART GTFS-RT api and was VERY confused at the output. Thanks for writing this project, it's going to be an essential part of whatever I end up building.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.