See issue #37 for longer narrative. When calculating how far one is off the route, this replaces the Turf code with Leaflet code for better accuracy with longer-vertex segments.
Confirmed that this was an issue
Reworked Leaflet code
This removes need for Turf, see changes to api.js
Compared distance results with Google Maps scalebar
See issue #37 for longer narrative. When calculating how far one is off the route, this replaces the Turf code with Leaflet code for better accuracy with longer-vertex segments.