feat: add 9 offline Turf.js geometry tools#141
Open
mattpodwysocki wants to merge 1 commit intomainfrom
Open
Conversation
Adds high-value geometry operations identified as gaps in issue #138: Tier 1 (fill clear gaps): - points_within_polygon_tool: batch point-in-polygon check - union_tool: merge polygons into unified geometry - nearest_point_tool: find closest point in a collection Tier 2 (no current workaround): - intersect_tool: intersection geometry of two polygons - difference_tool: subtract one polygon from another - destination_tool: calculate destination from bearing + distance - length_tool: measure total length of a line Tier 3 (specific patterns): - nearest_point_on_line_tool: snap point to nearest position on line - convex_tool: convex hull of a point set All tools are pure offline Turf.js operations — no API key required, instant results, no rate limits. Closes #138 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements all tools requested in #138. Adds 9 high-value offline geometry operations using Turf.js — no API key required, instant results, no rate limits.
New Tools
Tier 1 — High impact, fill clear gaps
points_within_polygon_toolpoint_in_polygon_toolcalls for delivery zone validation, fleet geofencing, etc.union_toolnearest_point_tooldistance_toolfor each candidate and sorting.Tier 2 — Commonly useful, no current workaround
intersect_tooldifference_tooldestination_toollength_toolTier 3 — Useful for specific patterns
nearest_point_on_line_toolconvex_toolTest plan
annotations.test.tsupdated with all 9 new offline tool namesCloses #138
🤖 Generated with Claude Code