A calculated route, as a GeoJSON Feature.
Its geometry is a LineString of the route path coordinates, and its properties hold all route information (summary, sections, guidance).
Type of the route properties (defaults to RouteProps)
The bounding box of the entire route, or at least of its waypoints.
The unique identifier of this route, randomly generated to tell route alternatives apart.
const route: Route = { type: 'Feature', geometry: { type: 'LineString', coordinates: [[4.9, 52.3], [4.91, 52.31], ...] }, properties: { id: 'route-123', summary: { lengthInMeters: 5000, travelTimeInSeconds: 300, ... }, sections: { ... }, index: 0 }}; Copy
const route: Route = { type: 'Feature', geometry: { type: 'LineString', coordinates: [[4.9, 52.3], [4.91, 52.31], ...] }, properties: { id: 'route-123', summary: { lengthInMeters: 5000, travelTimeInSeconds: 300, ... }, sections: { ... }, index: 0 }};
A calculated route, as a GeoJSON Feature.
Its geometry is a LineString of the route path coordinates, and its properties hold all route information (summary, sections, guidance).