The index of the waypoint in relation to the other waypoints.
The type associated to the index, describing how the waypoint sits in the list of waypoints.
OptionalstopDisplayIndex?: numberThe stop index to be displayed.
Stops are the non-soft waypoints added between origin and destination, numbered starting from 1. Only present for middle waypoints.
Display Behavior:
Used for displaying stop numbers (e.g., "Stop 1", "Stop 2") in the UI.
Waypoints are displayed differently based on their position:
// Start waypoint
const start: WaypointDisplayProps = {
id: 'waypoint-0',
iconID: 'waypoint-start',
index: 0,
indexType: 'start',
title: 'Amsterdam Central Station'
};
// Intermediate stop
const stop: WaypointDisplayProps = {
id: 'waypoint-1',
iconID: 'waypoint-stop',
index: 1,
indexType: 'middle',
stopDisplayIndex: 1,
title: 'Schiphol Airport'
};
// Destination
const finish: WaypointDisplayProps = {
id: 'waypoint-2',
iconID: 'waypoint-finish',
index: 2,
indexType: 'finish',
title: 'Rotterdam Central Station'
};
Display properties for a waypoint marker on the map.
Extends location display properties with waypoint-specific information including position in the route and stop numbering.