Coder Social home page Coder Social logo

Comments (8)

Wilzi avatar Wilzi commented on August 19, 2024 2

This could be a very useful and cool feature. Is there any update? :)

from node-gtfs.

brendannee avatar brendannee commented on August 19, 2024

Interesting idea - I'll look into it.

from node-gtfs.

billymwlei avatar billymwlei commented on August 19, 2024

Or try map all the stop as an n*n route......
Let me know if you need help, I am very interested at it

from node-gtfs.

brendannee avatar brendannee commented on August 19, 2024

Does anyone know of any existing JS routing libraries?

from node-gtfs.

lpolaright avatar lpolaright commented on August 19, 2024

This suggestion is a little bit obscure:
How do you define the shortest path from one stop to another?
The shortest path in distance?
The shortest path in time?
The shortest path in amount of stops?
The shortest path in terms of bus exchanges?
Each of them has their own share of work.

from node-gtfs.

nlambert avatar nlambert commented on August 19, 2024

What about the google maps directions api? Give it an origin, destination and restrict to transit.

from node-gtfs.

brendannee avatar brendannee commented on August 19, 2024

@nlambert That is one way to do it if the GTFS you are interested in is used by google.

from node-gtfs.

matthiasfeist avatar matthiasfeist commented on August 19, 2024

Here's a library that does routing (of road networks) completely in JS. Maybe you can draw some inspiration from it?
Graphhopper's GTFS module's README also has a good description of how their GTFS routing works: https://github.com/graphhopper/graphhopper/blob/master/reader-gtfs/README.md

from node-gtfs.

Related Issues (20)

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.