79419512

Date: 2025-02-06 22:34:03
Score: 0.5
Natty:
Report link

Have you tried this library https://www.npmjs.com/package/geojson-path-finder ? It also has a demo (https://www.liedman.net/geojson-path-finder/) where the GeoJson is a road network like in your case.

If what you actually wanted was to write the algorithm by yourself i guess you can checkout their code since its open source, seems the lib makes use of dijkstra.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Whitelisted phrase (-1): in your case
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ivo