mapbox-java
mapbox-java copied to clipboard
TurfMisc#nearestPointOnLine does not report distance along the route
Capturing from https://turfjs.org/docs/#nearestPointOnLine, the Feature returned from TurfMisc#nearestPointOnLine should return a location number property that describes the distance along the route of the computed intersection point, next to already available dist number property which describes the distance to the original point. Also would be great to explain those properties in the Javadoc and add public constant instead of relying on raw strings for dist and location.
/cc @cafesilencio