diff --git a/src/api/Api.ts b/src/api/Api.ts index bce0f3c5..c631656b 100644 --- a/src/api/Api.ts +++ b/src/api/Api.ts @@ -201,10 +201,8 @@ export class ApiImpl implements Api { points: args.points, profile: args.profile, elevation: true, - debug: false, instructions: true, locale: getTranslation().getLang(), - optimize: 'false', points_encoded: true, snap_preventions: config.request?.snapPreventions ? config.request.snapPreventions : [], ...profileConfig, diff --git a/src/api/graphhopper.d.ts b/src/api/graphhopper.d.ts index 1e5c947a..485ddff9 100644 --- a/src/api/graphhopper.d.ts +++ b/src/api/graphhopper.d.ts @@ -15,11 +15,9 @@ export interface RoutingRequest { readonly points: ReadonlyArray<[number, number]> profile: string locale: string - debug: boolean points_encoded: boolean instructions: boolean elevation: boolean - optimize: string 'alternative_route.max_paths'?: number 'alternative_route.max_weight_factor'?: number 'ch.disable'?: boolean diff --git a/test/routing/Api.test.ts b/test/routing/Api.test.ts index 0c427d07..db008dff 100644 --- a/test/routing/Api.test.ts +++ b/test/routing/Api.test.ts @@ -108,10 +108,8 @@ describe('route', () => { points: args.points, profile: args.profile, elevation: true, - debug: false, instructions: true, locale: 'en_US', - optimize: 'false', points_encoded: true, snap_preventions: ['ferry'], details: [ @@ -152,10 +150,8 @@ describe('route', () => { points: args.points, profile: args.profile, elevation: true, - debug: false, instructions: true, locale: 'en_US', - optimize: 'false', points_encoded: true, snap_preventions: ['ferry'], details: [ @@ -205,10 +201,8 @@ describe('route', () => { points: args.points, profile: args.profile, elevation: true, - debug: false, instructions: true, locale: 'en_US', - optimize: 'false', points_encoded: true, snap_preventions: ['ferry'], details: [ @@ -314,10 +308,8 @@ describe('route', () => { points: args.points, profile: args.profile, elevation: true, - debug: false, instructions: true, locale: 'de_DE', - optimize: 'false', points_encoded: true, snap_preventions: ['ferry'], details: [