From 5053f0f61e61c1ca29400458fcf2a9207548fa14 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 8 Dec 2023 18:44:15 +0100 Subject: [PATCH] for cp_ skip alternatives --- src/api/Api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/Api.ts b/src/api/Api.ts index c631656b..3ec831a2 100644 --- a/src/api/Api.ts +++ b/src/api/Api.ts @@ -214,7 +214,7 @@ export class ApiImpl implements Api { request['ch.disable'] = true } - if (args.points.length <= 2 && args.maxAlternativeRoutes > 1 && !(request as any)['curbsides']) { + if (args.points.length <= 2 && args.maxAlternativeRoutes > 1 && !(request as any)['curbsides'] && !args.profile.startsWith("cp_")) { return { ...request, 'alternative_route.max_paths': args.maxAlternativeRoutes,