private static int mapProximity(SchemaSpecification.OutputFeature expected, FeatureWithOverrides actualFeature,
    Boolean allowExtra) {
    int zoom = expected.atZoom();
    var expectedMap = expected.tags();
    var actualMap =
      actualFeature.overrides != null ? actualFeature.overrides.attrs() : actualFeature.feature.getAttrsAtZoom(zoom);
    int result = 0;
    for (var entry : expectedMap.entrySet()) {
      if (actualMap.containsKey(entry.getKey())) {
        result++;
        if (actualMap.get(entry.getKey()).equals(entry.getValue())) {
          result++;
        }
      }
    }

    return result;
  }
Returns the result of validating {@code profile} against the examples in {@code specification}.
planetiler-core/src/main/java/com/onthegomap/planetiler/validator/BaseSchemaValidator.java