diff --git a/core/src/main/resources/com/graphhopper/custom_models/foot.json b/core/src/main/resources/com/graphhopper/custom_models/foot.json index 76091fc9016..0a861f1a932 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/foot.json +++ b/core/src/main/resources/com/graphhopper/custom_models/foot.json @@ -7,7 +7,7 @@ { "priority": [ { "if": "!foot_access || hike_rating >= 2", "multiply_by": "0" }, - { "if": "true", "multiply_by": "foot_priority" } + { "else": "", "multiply_by": "foot_priority"} ], "speed": [ { "if": "true", "limit_to": "foot_average_speed" } diff --git a/core/src/main/resources/com/graphhopper/custom_models/hike.json b/core/src/main/resources/com/graphhopper/custom_models/hike.json index 029712a83de..c201a6ab145 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/hike.json +++ b/core/src/main/resources/com/graphhopper/custom_models/hike.json @@ -6,8 +6,7 @@ { "priority": [ - { "if": "hike_rating >= 5", "multiply_by": "0"}, - { "if": "!foot_access", "multiply_by": "0"}, + { "if": "!foot_access || hike_rating >= 5", "multiply_by": "0"}, { "else": "", "multiply_by": "foot_priority"}, { "if": "foot_network == INTERNATIONAL || foot_network == NATIONAL", "multiply_by": "1.7"}, { "else_if": "foot_network == REGIONAL || foot_network == LOCAL", "multiply_by": "1.5"}