Goal: find the GeoJSON points in a web map that are closest to a directions route using turf.js.
I am using the Mapbox Directions plugin. I am following this example.
How do I work with the route that is the output of the directions request? Is there are way to get the route line in GeoJSON format to perform typical Mapbox functions on it?
Thanks.
أكثر...
I am using the Mapbox Directions plugin. I am following this example.
How do I work with the route that is the output of the directions request? Is there are way to get the route line in GeoJSON format to perform typical Mapbox functions on it?
Thanks.
أكثر...