Skip to content

Commit

Permalink
for cp_ skip alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Dec 8, 2023
1 parent 5259a08 commit 5053f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5053f0f

Please sign in to comment.