The optimisation strategy for route calculation.
It sets what the routing engine optimises for, and each type produces routes suited to different use cases.
fast minimises travel time while staying practical.
fast
short balances time and distance.
short
efficient minimises fuel or energy consumption.
efficient
thrilling plans scenic and engaging routes.
thrilling
// Fastest route for commutingconst routeType: RouteType = 'fast';// Most fuel-efficient route for long tripconst ecoRoute: RouteType = 'efficient';// Scenic route for leisureconst scenicRoute: RouteType = 'thrilling'; Copy
// Fastest route for commutingconst routeType: RouteType = 'fast';// Most fuel-efficient route for long tripconst ecoRoute: RouteType = 'efficient';// Scenic route for leisureconst scenicRoute: RouteType = 'thrilling';
The optimisation strategy for route calculation.
It sets what the routing engine optimises for, and each type produces routes suited to different use cases.