A GeoJSON FeatureCollection of one or more calculated routes.
It typically holds the main route (index 0) and optional alternative routes. calculateRoute sets no collection properties.
calculateRoute
Type of individual route properties (defaults to RouteProps)
Type of collection-level properties
Optional
The bounding box of all the routes, or at least of their waypoints. It is defined only if there are routes.
The route features.
const routes: Routes = { type: 'FeatureCollection', features: [ { type: 'Feature', geometry: {...}, properties: { index: 0, ... } }, // Main route { type: 'Feature', geometry: {...}, properties: { index: 1, ... } } // Alternative ]}; Copy
const routes: Routes = { type: 'FeatureCollection', features: [ { type: 'Feature', geometry: {...}, properties: { index: 0, ... } }, // Main route { type: 'Feature', geometry: {...}, properties: { index: 1, ... } } // Alternative ]};
A GeoJSON FeatureCollection of one or more calculated routes.
It typically holds the main route (index 0) and optional alternative routes.
calculateRoutesets no collection properties.