Waypoints are single points by default. To create a circle (soft) waypoint, use the full Waypoint Feature format with a radiusMeters property.
// As coordinate array
const wp1: WaypointLike = [4.9041, 52.3676];
// As Point geometry
const wp2: WaypointLike = { type: 'Point', coordinates: [4.9041, 52.3676] };
// As full Waypoint Feature with radius
const wp3: WaypointLike = {
type: 'Feature',
geometry: { type: 'Point', coordinates: [4.9041, 52.3676] },
properties: { radiusMeters: 500 }
};
Flexible input type for specifying a waypoint location.
Accepts various formats for convenience:
WaypointFeature (for circle waypoints or waypoints with custom properties)