@squawk
    Preparing search index...

    Function extractRoutePoints

    • Extracts the ordered sequence of drawable geographic points from a parsed flight plan route.

      Expands airway and SID/STAR segments into their constituent fixes and suppresses consecutive duplicate points (e.g. an airway entry fix that matches the preceding waypoint). Elements without coordinates (DCT, speed/altitude groups, unresolved tokens) contribute no points.

      This is the same walk that backs computeRouteDistance, so the point sequence here lines up with that result's legs.

      import { createFlightplanResolver, extractRoutePoints } from '@squawk/flightplan';

      const resolver = createFlightplanResolver({ airports, navaids, fixes, airways });
      const route = resolver.parse('KJFK DCT MERIT J60 MARTN DCT KLAX');
      const points = extractRoutePoints(route);

      Parameters

      Returns RoutePoint[]

      Ordered drawable points along the route.