Never finds a path
psociety opened this issue · 1 comments
psociety commented
ty for creating pathFinder!
Version: 1.5.3
Demo: https://jsfiddle.net/6qugy0rm/
I made a simple GeoJSON and i tried to apply the pathFinder but i never get a path :s
(a red path would be painted between those markers if pathFinder had any result)
What i'm missing out?
perliedman commented
Hi, a late reply, but it looks like your start and end coordinates are not part of the graph. I should update the docs, but start and end must be vertices in the routing network.
A common solution is to snap start and end to the closest vertex in the routing network before calling findPath
.