Skip to content

Commit

Permalink
Fix green and quiet routing not working
Browse files Browse the repository at this point in the history
The code segment passing the green and quiet settings
was accidentally removed during refactoring.

closes #310
  • Loading branch information
TheGreatRefrigerator committed Jan 14, 2020
1 parent 6e92c80 commit c97a086
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/infrastructure/ors-utils-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,14 @@ angular.module("orsApp.utils-service", []).factory("orsUtilsService", [
};
}
}
if (subgroup === "Pedestrian") {
if (settings.profile.options.green) {
options.profile_params.weightings.green = settings.profile.options.green
}
if (settings.profile.options.quiet) {
options.profile_params.weightings.quiet = settings.profile.options.quiet
}
}
// if avoid area polygon
if (
settings.avoidable_polygons &&
Expand Down

0 comments on commit c97a086

Please sign in to comment.