Skip to content

Commit

Permalink
intentionally reduce widths way below realistic estimates
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Oct 14, 2022
1 parent 318d1c5 commit 0aa99c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ private fun estimateCyclewaysWidth(tags: Map<String, String>, isLane: Boolean):
return leftWidth + rightWidth
}

private const val BROAD_LANE = 4f
private const val LANE = 3f
// those values are pessimistic by design, they should not be realistic
private const val BROAD_LANE = 3f
private const val LANE = 2f
private const val SHOULDER = 2f
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AddSidewalk : OsmElementQuestType<LeftAndRightSidewalk> {
(estimateRoadwayWidth(tags) ?: guessRoadwayWidth(tags)) +
(estimateParkingOffRoadWidth(tags) ?: 0f) +
(estimateCycleTrackWidth(tags) ?: 0f) +
1.8f // usual minimum sidewalk width
1f // absolute minimum legal sidewalk width is usually above 1.5m, but be even more pessimistic
) / 2f +
4f // + generous buffer for possible grass verge

Expand Down

0 comments on commit 0aa99c3

Please sign in to comment.