Skip to content

Commit 4be5617

Browse files
authored
Changes to Exclude unpaved (#237)
1 parent 5efd21e commit 4be5617

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/Controls/settings-options.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ const ignoreRestrictions = {
359359
const ignoreAccess = {
360360
name: 'Ignore Access',
361361
description:
362-
'If set to true, Will ignore mode-specific access tags. Especially useful for matching GPS traces to the road network regardless of restrictions.',
362+
'If set to true, will ignore mode-specific access tags. Especially useful for matching GPS traces to the road network regardless of restrictions.',
363363
param: 'ignore_access',
364364
}
365365

@@ -405,14 +405,8 @@ const serviceFactor = {
405405
const excludeUnpaved = {
406406
name: 'Exclude Unpaved',
407407
description:
408-
'This value indicates the whether or not the path may include unpaved roads. If exclude_unpaved is set to 1 it is allowed to start and end with unpaved roads, but is not allowed to have them in the middle of the route path, otherwise they are allowed.',
408+
'This value indicates whether or not the path may include unpaved roads. If set to true, a route is allowed to start and end with unpaved roads, but is not allowed to have them in the middle, otherwise they are allowed.',
409409
param: 'exclude_unpaved',
410-
unit: 'Yes/No',
411-
settings: {
412-
min: 0,
413-
max: 1,
414-
step: 1,
415-
},
416410
}
417411

418412
const shortest = {
@@ -734,7 +728,7 @@ export const settingsInit = {
734728
closure_factor: 9,
735729
service_penalty: 15,
736730
service_factor: 1,
737-
exclude_unpaved: 1,
731+
exclude_unpaved: false,
738732
shortest: false,
739733
exclude_cash_only_tolls: false,
740734
bicycle_type: 'Hybrid',
@@ -937,12 +931,12 @@ export const settings_general = {
937931
ferryCost,
938932
useLivingStreets,
939933
useTracks,
940-
excludeUnpaved,
941934
],
942935
boolean: [
943936
ignoreClosures,
944937
ignoreRestrictions,
945938
ignoreAccess,
939+
excludeUnpaved,
946940
excludeCashOnlyTolls,
947941
includeHOV3,
948942
includeHOV2,
@@ -961,12 +955,12 @@ export const settings_general = {
961955
ferryCost,
962956
useLivingStreets,
963957
useTracks,
964-
excludeUnpaved,
965958
],
966959
boolean: [
967960
ignoreClosures,
968961
ignoreRestrictions,
969962
ignoreAccess,
963+
excludeUnpaved,
970964
excludeCashOnlyTolls,
971965
],
972966
enum: [],
@@ -982,12 +976,12 @@ export const settings_general = {
982976
useFerry,
983977
ferryCost,
984978
useTracks,
985-
excludeUnpaved,
986979
],
987980
boolean: [
988981
ignoreClosures,
989982
ignoreRestrictions,
990983
ignoreAccess,
984+
excludeUnpaved,
991985
excludeCashOnlyTolls,
992986
],
993987
enum: [],
@@ -1033,7 +1027,6 @@ export const settings_general = {
10331027
ferryCost,
10341028
useLivingStreets,
10351029
useTracks,
1036-
excludeUnpaved,
10371030
],
10381031
boolean: [
10391032
ignoreClosures,

0 commit comments

Comments
 (0)