Class ReverseWayNoTagCorrector

    • Field Detail

      • DIRECTIONAL_TAGS

        private static final TagCollection DIRECTIONAL_TAGS
        Tags that imply a semantic meaning from the way direction and cannot be changed.
    • Method Detail

      • getDirectionalTags

        public static TagCollection getDirectionalTags​(Tagged way)
        Replies the tags that imply a semantic meaning from way direction and cannot be changed.
        Parameters:
        way - The way to look for
        Returns:
        tags that imply a semantic meaning from way direction and cannot be changed
      • isReversible

        public static boolean isReversible​(Tagged way)
        Tests whether way can be reversed without semantic change. Looks for tags like natural=cliff, barrier=retaining_wall.
        Parameters:
        way - The way to check
        Returns:
        false if the semantic meaning change if the way is reversed, true otherwise.