bgrins / javascript-astar

A* Search / Pathfinding Algorithm in Javascript
https://briangrinstead.com/blog/astar-search-algorithm-in-javascript-updated/
MIT License
1.34k stars 320 forks source link

A star for the metro #41

Open Franck22 opened 9 years ago

Franck22 commented 9 years ago

Hello

bgrins commented 9 years ago

Hi the closest thing in the repo is the GPS pathfinding example in the test (https://github.com/bgrins/javascript-astar/blob/3f983dc7ae7e2d9d689f88d329075815a0c65f94/test/tests.js#L132). See CityGraph/CityNode. Not sure if it will solve your problem exactly but it shows a way to have custom connections between nodes.