From 9f60c971a8ce4bd90120163e2b819e4a0b24e897 Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 13 May 2024 17:12:31 +0200 Subject: [PATCH] don't overdo with alternatives, even for car --- src/stores/QueryStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/QueryStore.ts b/src/stores/QueryStore.ts index 8cb12534..a9da716d 100644 --- a/src/stores/QueryStore.ts +++ b/src/stores/QueryStore.ts @@ -344,7 +344,7 @@ export default class QueryStore extends Store { if ( state.queryPoints.length === 2 && state.maxAlternativeRoutes > 1 && - (ApiImpl.isMotorVehicle(state.routingProfile.name) || maxDistance < 500_000) + (ApiImpl.isMotorVehicle(state.routingProfile.name) && maxDistance < 8_000_000 || maxDistance < 500_000) ) requests.push(QueryStore.buildRouteRequest(state)) }