Giter Site home page Giter Site logo

raptor's People

Contributors

dependabot[bot] avatar iamralpht avatar linusnorton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

raptor's Issues

Readme example doesn't work, argument mismatch?

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)

flatMap is not a function

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.

Examples in readme don't work in console ("gtfs.zip" should be a stream object)

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!

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.