planarnetwork / raptor Goto Github PK
View Code? Open in Web Editor NEWImplementation of the Route Based Public Transit Algorithm (Raptor)
Implementation of the Route Based Public Transit Algorithm (Raptor)
Hello,
unfortunately I can't get the readme sample to work. Line 5 throws an error:
const raptor = RaptorAlgorithmFactory.create(trips, transfers, interchange, calendars);
Dates given in calendars
cannot be parsed. Logging the arguments, calendars
contains all the stops, not dates and times.
Checking the code, to my understanding loadGTFS()
returns [trips, transfers, interchange, stops]
while RaptorAlgorithmFactory.create()
expects [trips, transfers, interchange, date]
.
Could you check if this is an error or if I'm misunderstanding anything?
Thank you for your work @linusnorton and @iamralpht !
Best regards!
(I tried multiple GTFS sources, e.g. the Google example feed)
Hi
i’ve installed on Node 20 and tried the readme examples but while it spins and seems to run, nothing console logs?
I'm new to node and try to run your project.
And failed to run the test.
29) RangeQuery
does not share bestArrivals or routeScanner:
TypeError: destinationsWithResults.flatMap is not a function
at GroupStationDepartAfterQuery.getJourneysFromConnections (src/query/GroupStationDepartAfterQuery.ts:88:52)
at GroupStationDepartAfterQuery.getJourneys (src/query/GroupStationDepartAfterQuery.ts:49:28)
at GroupStationDepartAfterQuery.plan (src/query/GroupStationDepartAfterQuery.ts:32:26)
at RangeQuery.plan (src/query/RangeQuery.ts:40:42)
at Context.it (test/unit/query/RangeQuery.spec.ts:86:26)
I wonder how I can fix this issue.
Hello, this repository is very helpful to understand RAPTOR algorithm. Thanks a lot to publish this.
I'd like to report a small issue.
As I tried to run example codes in readme, but stream.pipe is not a funtion
error occurs.
I just corrected "gtfs.zip"
to fs.createReadStream("gtfs.zip")
and it works. I understand that this fix is only for running node
from console (command-line), not from webapp.
Maybe it's more beginner-friendly to mention about this in readme.
Thanks!
So I've tried the readme examples, but it gets stuck on loadGTFS. The gtfs file I am using is this one from https://www.digitraffic.fi/en/railway-traffic/#gtfs.
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.