It typically contains one summary per route, but can hold several per route for detailed displays.
const summaries: DisplayRouteSummaries = {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
geometry: { type: 'Point', coordinates: [4.9, 52.3] },
properties: {
routeIndex: 0,
routeState: 'selected',
formattedDistance: '15.3 km',
formattedDuration: '22 min'
}
},
{
type: 'Feature',
geometry: { type: 'Point', coordinates: [4.85, 52.35] },
properties: {
routeIndex: 1,
routeState: 'deselected',
formattedDistance: '18.7 km',
formattedDuration: '25 min'
}
}
]
};
A GeoJSON feature collection of points with display-ready route summary props.
It holds the summary bubbles of all routes, for displaying route alternatives with summary information.