Type of individual route properties (defaults to RouteProps)
Type of collection-level properties
const routes: Routes = {
type: 'FeatureCollection',
features: [
{ type: 'Feature', geometry: {...}, properties: { index: 0, ... } }, // Main route
{ type: 'Feature', geometry: {...}, properties: { index: 1, ... } } // Alternative
],
properties: {
requestId: 'req-456',
calculatedAt: new Date()
}
};
A GeoJSON FeatureCollection of one or more calculated routes.
It typically holds the main route (index 0) and optional alternative routes. Its properties can include metadata about the routing request.