Use Cases:
Waypoint Types:
WaypointLike: Full waypoint with coordinates and optional propertiesnull: Placeholder for unset or removed waypoints// Array of waypoints with some unset
const waypoints: PlanningWaypoint[] = [
{ type: 'Feature', geometry: { type: 'Point', coordinates: [4.9, 52.3] } },
null, // Empty slot for user to add waypoint
{ type: 'Feature', geometry: { type: 'Point', coordinates: [4.5, 51.9] } }
];
// Filter out null waypoints before routing
const validWaypoints = waypoints.filter(w => w !== null);
Waypoint or placeholder for route planning.
Represents a point along a route, which can be a full waypoint with position and properties, or
nullfor placeholder positions (e.g., unset waypoints in a multi-stop route planner UI).