Skip to content

Commit

Permalink
Merge pull request #3339 from finnishtransportagency/DROTH-4203_manou…
Browse files Browse the repository at this point in the history
…vres_not_visible_with_functionalClass_9

 DROTH-4203 added 9 to allowed functional classes
  • Loading branch information
MJKaakinen authored Nov 5, 2024
2 parents 29c8833 + 0655bd8 commit e380771
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ case class RoadLink(linkId: String, geometry: Seq[Point],
}

def isCarRoadOrCyclePedestrianPath : Boolean = {
val allowedFunctionalClasses = Set(1, 2, 3, 4, 5, 6)
val allowedFunctionalClasses = Set(1, 2, 3, 4, 5, 6, 9)
val disallowedLinkTypes = Set(UnknownLinkType.value, PedestrianZone.value, CableFerry.value)

allowedFunctionalClasses.contains(functionalClass % 10) && !disallowedLinkTypes.contains(linkType.value)
Expand Down

0 comments on commit e380771

Please sign in to comment.