The waypoint's id: the one you gave it, a string or a number, otherwise a generated string.
It identifies the waypoint in event handlers, UserEventsWithStates.setEventState and UserEventsWithStates.getEventStates, which return it as given.
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: 'waypointStart-0',
index: 0,
indexType: 'start',
title: 'Amsterdam Central Station'
};
// Intermediate stop
const stop: WaypointDisplayProps = {
id: 'waypoint-1',
iconID: 'waypointStop-0',
index: 1,
indexType: 'middle',
stopDisplayIndex: 1,
title: 'Schiphol Airport'
};
// Destination
const finish: WaypointDisplayProps = {
id: 'waypoint-2',
iconID: 'waypointFinish-0',
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.