private static Comparator<FeatureWithOverrides> proximityTo(SchemaSpecification.OutputFeature expected) {
    return Comparator.comparingInt(item -> (Objects.equals(item.feature.getLayer(), expected.layer()) ? 2 : 0) +
      (Objects.equals(GeometryType.typeOf(item.feature.getGeometry()), expected.geometry()) ? 1 : 0) +
      mapProximity(expected, item, expected.allowExtraTags()));
  }
Returns the result of validating {@code profile} against the examples in {@code specification}.
planetiler-core/src/main/java/com/onthegomap/planetiler/validator/BaseSchemaValidator.java