GeoJSON Feature representing a calculated route.
The geometry is a LineString containing the route path coordinates. The properties contain all route information (summary, sections, guidance).
Type of the route properties (defaults to RouteProps)
Bounding box that contains the entire route or at least its waypoints.
Unique identifier for this route.
Randomly generated to distinguish between multiple route alternatives.
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 }};
GeoJSON Feature representing a calculated route.
The geometry is a LineString containing the route path coordinates. The properties contain all route information (summary, sections, guidance).