public static boolean canBePolygon(boolean closed, String area, int points) {
    return (closed && !"no".equals(area)) && points >= 4;
  }
Returns {@code true} if a way can be interpreted as a polygon.
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/osm/OsmReader.java