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