Route optimization strategy for route calculation.
Determines what the routing engine optimizes for when calculating the route. Each type produces different routes suited to different use cases.
Route Type Strategies:
fast: Minimize travel time while maintaining practicality
fast
short: Balance between time and distance
short
efficient: Minimize fuel or energy consumption
efficient
thrilling: 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';
Route optimization strategy for route calculation.
Determines what the routing engine optimizes for when calculating the route. Each type produces different routes suited to different use cases.