// Regular waypoint
const waypoint: Waypoint = {
type: 'Feature',
geometry: { type: 'Point', coordinates: [4.9041, 52.3676] },
properties: {}
};
// Waypoint with custom properties
const namedWaypoint: Waypoint<{ name: string }> = {
type: 'Feature',
geometry: { type: 'Point', coordinates: [4.9041, 52.3676] },
properties: { name: 'Amsterdam' }
};
A route waypoint, as a GeoJSON Feature.
Waypoints define the route path. The route passes through them in the order you specify.