Skip to content

Commit

Permalink
Use slope for moderate paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Aug 31, 2023
1 parent aab79dc commit 0c8f267
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SimpleHikingDifficultyCalculator(private val hikingService: IHikingService

val rating = if (maxSlope >= 25) {
HikingDifficulty.Hard
} else if (elevationChange >= 250 || distance >= 2) {
} else if (elevationChange >= 250 || distance >= 2 || maxSlope >= 15) {
HikingDifficulty.Moderate
} else {
HikingDifficulty.Easy
Expand Down

0 comments on commit 0c8f267

Please sign in to comment.