Outdoor Routing

"/home/yossef/notes/git/projects/maplibra/modules/Outdoor Routing.md"

path: maplibra/modules/Outdoor Routing.md

- **fileName**: Outdoor Routing
- **Created on**: 2026-06-16 00:48:42

Outdoor Routing

Purpose: Stitches indoor routes with outdoor street routes for campus-scale navigation.

Related: ../Home.md, ../Architecture.md, ./Pathfinding.md, ../flows/Outdoor Route.md, ./MVF Format.md

What It Does

Outdoor routing allows the app to compute routes that start or end outside the building. It finds the nearest road, fetches a street route via OSRM-like APIs, and stitches it to the indoor pathfinding graph.

Key Concepts

Route Stitching Flow

  1. Detect if start or target is outside the building
  2. Find nearest road point (or nearest entrance node for indoor side)
  3. Fetch street route between outdoor points
  4. Build a unified graph combining indoor nodes + outdoor segment
  5. Run A* on the unified graph
  6. Smooth the combined route

Configuration

outdoorRouting settings in PathfindingController options:

Direct Outdoor Route

When no street route is available or desirable, a direct outdoor route solver walks around the building footprint:

Caching

Outdoor route results are cached in outdoorCache with provider-specific keys (profile, base URL, radius):

Important Files

How It Connects