TurfMisc#nearestPointOnLine does not report distance along the route
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 438
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at TurfMisc#nearestPointOnLine and compare its returned Feature with the nearestPointOnLine documentation at turfjs.org/docs/. The work is done when the result includes a route-distance location property and the dist/location properties are explained in Javadoc with public constants replacing raw strings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100