Skip to content

@turf/shortest-path Allow polygon feature as obstacle for shortestPath (#2941)#2942

Merged
smallsaucepan merged 2 commits intoTurfjs:masterfrom
ziegler-daniel:bugfix/issue-2941
Nov 8, 2025
Merged

@turf/shortest-path Allow polygon feature as obstacle for shortestPath (#2941)#2942
smallsaucepan merged 2 commits intoTurfjs:masterfrom
ziegler-daniel:bugfix/issue-2941

Conversation

@ziegler-daniel
Copy link
Contributor

@ziegler-daniel ziegler-daniel commented Nov 3, 2025

Issue

This resolves #2941

Summary

  • shortestPath accepts now a Feature<Polygon> obstacle as documented.

Checklist

  • Meaningful title, including the name of the package being modified.
  • Summary of the changes.
  • Heads up if this is a breaking change.
  • Any issues this resolves.
  • Inclusion of your details in the contributors field of package.json - you've earned it! 👏
  • Confirmation you've read the steps for preparing a pull request.

Copy link
Member

@smallsaucepan smallsaucepan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one. Thank you @ziegler-daniel

@smallsaucepan smallsaucepan merged commit e352195 into Turfjs:master Nov 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@turf/shortest-path does not accept Feature<Polygon> as obstacles

2 participants