Skip to content

Commit

Permalink
don't send debug and optimize parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 29, 2023
1 parent e04892a commit 29fea1d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/api/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/api/graphhopper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions test/routing/Api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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: [
Expand Down Expand Up @@ -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: [
Expand Down Expand Up @@ -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: [
Expand Down

0 comments on commit 29fea1d

Please sign in to comment.