Class SharpAngles

    • Constructor Detail

      • SharpAngles

        public SharpAngles()
        Construct a new IntersectionIssues object
    • Method Detail

      • shouldBeTestedForSharpAngles

        public boolean shouldBeTestedForSharpAngles​(Way way)
        Check whether or not a way should be checked for sharp angles
        Parameters:
        way - The way that needs to be checked
        Returns:
        true if the way should be checked.
      • checkWayForSharpAngles

        public void checkWayForSharpAngles​(Way way)
        Check nodes in a way for sharp angles
        Parameters:
        way - A way to check for sharp angles
      • setMaxLength

        public void setMaxLength​(double length)
        Set the maximum length for the shortest segment
        Parameters:
        length - The max length in meters
      • addIgnoredHighway

        public void addIgnoredHighway​(String highway)
        Add a highway to ignore
        Parameters:
        highway - The highway type to ignore (e.g., if you want to ignore residential roads, use "residential")
      • setMaxAngle

        public void setMaxAngle​(double angle)
        Set the maximum angle
        Parameters:
        angle - The maximum angle in degrees.