Search code examples
javascriptleafletmapboxdijkstrapath-finding

how to implement Dijkstra algorithm in mapbox or leaflet?


I wanted to make a school campus map with custom roads and apply the path finding algorithm I tried mapbox but I couldn't find in docs.


Solution

  • Go through the Leaflet routing machine. It is a open source platform for routing. https://www.liedman.net/leaflet-routing-machine/