Skip to content

Commit

Permalink
DT-6182 use scooter availableForSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
sharhio committed Sep 4, 2024
1 parent 23e6deb commit 6d750b5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions app/configurations/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,4 @@ export default {
},
},
],

scooterRoutingOn: false,
};
2 changes: 0 additions & 2 deletions app/configurations/config.hsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,4 @@ export default {
},

startSearchFromUserLocation: true,

scooterRoutingOn: false,
};
2 changes: 0 additions & 2 deletions app/configurations/config.matka.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,4 @@ export default {
includePublicWithBikePlan: true,

startSearchFromUserLocation: true,

scooterRoutingOn: false,
};
2 changes: 1 addition & 1 deletion app/util/planParamUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export function planQueryNeeded(
case PLANTYPE.SCOOTERTRANSIT:
/* special logic: relaxed scooter query is made only if no networks allowed */
return (
config.scooterRoutingOn &&
config.transportModes.scooter.availableForSelection &&
transitModes.length > 0 &&
!wheelchair &&
(relaxSettings
Expand Down

0 comments on commit 6d750b5

Please sign in to comment.