Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

TurfMisc#nearestPointOnLine does not report distance along the route

Open
#1,165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

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.

Description

Turf

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

Dominant language
Java
Stars
438
Forks
117
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapbox/mapbox-java

All issues in mapbox/mapbox-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.