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()
}
};
GeoJSON FeatureCollection containing one or more calculated routes.
Typically contains the main route (index 0) and optional alternative routes. Collection properties can include metadata about the routing request.