perliedman / geojson-path-finder

Find shortest path through a network of GeoJSON
https://www.liedman.net/geojson-path-finder/
ISC License
300 stars 86 forks source link

Do not "simplify" returned route #87

Open HarelM opened 1 year ago

HarelM commented 1 year ago

Thanks for this awesome tool! I'm looking into integrating it in order to allow small offline routing using vector data that is on the device. Beside the issue I opened recently (#86), the following is also problematic in terms of results: Green is that start point, red is the end point, and the blue line is the routing. As can be seen the route itself is not using the original data points but probably the post process points (if I need to guess). image An expected results would be to get all the points on the original data set.

pbvahlst commented 1 year ago

Try to lower the tolerance option

HarelM commented 1 year ago

Yup, Thanks! I was planning on doing so. It does solve the problem. I guess my main concern is how to create a route between any two points - i.e. #86