Skip to content

Route planner produces straight-line routes that cross land #4

Description

@navado

Summary

The route planning tool interpolates straight-line paths between waypoints without land/obstacle avoidance, generating routes that pass through the Albanian/Greek mainland.

Evidence

"The original straight-line interpolation crossed Albanian/Greek mainland - the corrected coordinates should route you properly down the Adriatic coast."

Reported for a Tivat→Korfu route (user explicitly asked "why the route is on land?"). A Pula→Bari route also carried the warning:

"Route is unverified for depth/land crossing - check chart before departure."

Suggested course of action

  1. Integrate a land-avoidance or coastline-aware routing algorithm (e.g., a graph over known navigable waypoints, or an existing maritime routing API) in place of or as a post-processing step after straight-line interpolation.
  2. At minimum, add a mandatory validation step that checks all waypoints and intermediate interpolated points against a land polygon dataset and rejects/re-routes if any point is on land.
  3. Suppress the "unverified for depth/land crossing" disclaimer once proper validation is in place — its presence indicates the current check is absent or advisory-only.
  4. Add test cases for Tivat→Korfu and Pula→Bari routes asserting all waypoints have positive water depth and do not intersect known land polygons.

Generated by Claude Code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions