Class RoundaboutMissingTagCheck

  • All Implemented Interfaces:
    java.io.Serializable, Check

    public class RoundaboutMissingTagCheck
    extends BaseCheck<java.lang.Long>
    Flags edges that are closed and round shaped without junction=roundabout tag and have minimum of two intersections with navigable roads MINIMUM_INTERSECTION connections. See https://wiki.openstreetmap.org/wiki/Tag:junction%3Droundabout for more information about roundabouts
    See Also:
    Serialized Form
    • Field Detail

      • MISSING_JUNCTION_TAG_INSTRUCTION

        public static final java.lang.String MISSING_JUNCTION_TAG_INSTRUCTION
        See Also:
        Constant Field Values
    • Constructor Detail

      • RoundaboutMissingTagCheck

        public RoundaboutMissingTagCheck​(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
        Default constructor
        Parameters:
        configuration - the JSON configuration for this check
    • Method Detail

      • validCheckForObject

        public boolean validCheckForObject​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Validates if given AtlasObject is actually an Edge and is a potential roundabout and also corresponding OSM identifier shouldn't be flagged before (this is for avoiding duplicate flags)
        Parameters:
        object - The AtlasObject you are checking
        Returns:
        true if it is
      • flag

        protected java.util.Optional<CheckFlag> flag​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Flags an Edge is its circular shape and connected to at least MINIMUM_INTERSECTION navigable roads. Edge doesn't have junction=roundabout or area=yes tags.
        Specified by:
        flag in class BaseCheck<java.lang.Long>
      • getFallbackInstructions

        protected java.util.List<java.lang.String> getFallbackInstructions()
        Description copied from class: BaseCheck
        Method to implement for inheriting checks to return the default set of instruction formats that will be the last resort in BaseCheck.getLocalizedInstruction(int, Object[])
        Overrides:
        getFallbackInstructions in class BaseCheck<java.lang.Long>
        Returns:
        The set of instructions to fall back to if configuration results in none.