node-gtfs
node-gtfs copied to clipboard
Could there any chance for implementing shortest path from one stop to another?
Try to start a worker thread for 4R ? https://github.com/bliksemlabs/rrrr
Interesting idea - I'll look into it.
Or try map all the stop as an n*n route...... Let me know if you need help, I am very interested at it
This could be a very useful and cool feature. Is there any update? :)
Does anyone know of any existing JS routing libraries?
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.
What about the google maps directions api? Give it an origin, destination and restrict to transit.
@nlambert That is one way to do it if the GTFS you are interested in is used by google.
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