Waypoints are single points by default. To carry properties of your own alongside the position, use the full Waypoint Feature format.
// 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 carrying custom properties
const wp3: WaypointLike = {
type: 'Feature',
geometry: { type: 'Point', coordinates: [4.9041, 52.3676] },
properties: { name: 'Amsterdam' }
};
A waypoint location, in one of these forms:
WaypointFeature, for waypoints carrying custom properties.