The waypoint's index among the other waypoints.
The type of the index, which describes where the waypoint sits in the list of waypoints.
OptionalstopDisplayIndex?: numberThe stop index to display.
OptionalstopDisplayLabel?: stringThe mark the stop's pin draws inside it, under WaypointsConfig.stopNumbering, such as
'2' or 'B' for the second stop.
OptionalstopDuration?: stringHow long the route waits at this waypoint, formatted for display.
Waypoints display differently by 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.
They extend location display properties with waypoint-specific information, including route position and stop numbering.