Safe Direct Route Smoothing

"/home/yossef/notes/git/projects/maplibra/decisions/Safe Direct Route Smoothing.md"

path: maplibra/decisions/Safe Direct Route Smoothing.md

- **fileName**: Safe Direct Route Smoothing
- **Created on**: 2026-06-16 00:48:42

Safe Direct Route Smoothing

Purpose: Explain why route visual smoothing uses full validated visibility shortcuts after A*.

This decision is documented in ../modules/Route Smoothing.md under Stage -1: Visible Direct Smoothing.

Decision

Rendered route geometry now starts with a visibility pass that removes intermediate graph points when a direct segment is fully walkable.

Why

A* graph paths can be correct but visually stair-stepped. Full walkability validation allows direct open-area shortcuts without changing graph generation or A* cost logic.

Safety

The pass uses isRouteSegmentWalkable() before accepting shortcuts. If a wall or non-walkable area blocks the direct segment, original graph points remain.

continue:[[]]
before:[[]]