codeforpdx / opentransit-collector Goto Github PK
View Code? Open in Web Editor NEWFetches transit data (realtime vehicle locations) and saves it to S3
License: Apache License 2.0
Fetches transit data (realtime vehicle locations) and saves it to S3
License: Apache License 2.0
Currently the S3 keys created by Orion do not have leading zeros in the components with 2 digit numbers like dates and months, so an alphabetic sort of the S3 keys doesn't necessarily put them in the correct order. It would be better to add leading zeros to all path components. This would also require changing opentransit-state-api accordingly.
Last week, when the streetcar provider got an error it blocked the other provider, trimet, from getting data and putting it in s3.
I propose two improvements:
See code here for Portland's streetcar provider nextbus - https://github.com/codeforpdx/opentransit-collector/blob/master/src/providers/nextbus.js. We could build in some error handling to try/except flow and log errors. Logging errors would be helpful to aid in bug fixing. Right now, the errors go to the console. If you miss it, it can be hard to recreate.
We could add better error handling to the index.js file https://github.com/codeforpdx/opentransit-collector/blob/master/src/index.js. When the streetcar (nextbus) provider was broken, it was blocking the trimet gtfs-realtime collector from working. Ideally, each provider could fail independently.
The git repository was renamed from orion to opentransit-collector. The code (e.g. environment variables and config files) and documentation should be updated accordingly.
Trimet's API response can have "bad json" (i.e. json-like string that breaks a parser). This will break the line
There was an issue with the gtfs-rt feed for the street car so I removed it from the opentransit-collector
process. I removed it from the process so that we would still get data from the trimet feed.
Someone can try to recreate the error locally.
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.