Turfjs / Turfjs/turf

FR: Export `distanceToSegment` from `@turf/point-to-line-distance`

Open
#2,734 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
10.5k
Forks
1k
Avg merge
1h 11m
Merged PRs (30d)
4

Description

distanceToSegment is not exported from @turf/point-to-line-distance.

This function can be handy for walking along a line determining distances, while also determining which segments points are nearest.

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.

Research direction

Start at the @turf/point-to-line-distance package entry point and inspect how its public exports are defined. Confirm that distanceToSegment is exposed from the package and verify the package checks; the work is done when consumers can import that function from the requested package.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.