From 23163ec4b118f3fdce6d52061909babe06fd6114 Mon Sep 17 00:00:00 2001 From: Goutham Vidya Pradhan Date: Tue, 14 May 2024 17:47:51 +0200 Subject: [PATCH 1/2] fix: Add missing type administrative_area_level_6 and administrative_area_level_7 --- .../com/google/maps/model/AddressComponentType.java | 12 ++++++++++++ src/test/java/com/google/maps/model/EnumsTest.java | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/main/java/com/google/maps/model/AddressComponentType.java b/src/main/java/com/google/maps/model/AddressComponentType.java index aa0d565d7..ef45c6932 100644 --- a/src/main/java/com/google/maps/model/AddressComponentType.java +++ b/src/main/java/com/google/maps/model/AddressComponentType.java @@ -70,6 +70,18 @@ public enum AddressComponentType { */ ADMINISTRATIVE_AREA_LEVEL_5("administrative_area_level_5"), + /** + * A sixth-order civil entity below the country level. This type indicates a minor civil division. + * Not all nations exhibit these administrative levels. + */ + ADMINISTRATIVE_AREA_LEVEL_6("administrative_area_level_6"), + + /** + * A seventh-order civil entity below the country level. This type indicates a minor civil division. + * Not all nations exhibit these administrative levels. + */ + ADMINISTRATIVE_AREA_LEVEL_7("administrative_area_level_7"), + /** A commonly-used alternative name for the entity. */ COLLOQUIAL_AREA("colloquial_area"), diff --git a/src/test/java/com/google/maps/model/EnumsTest.java b/src/test/java/com/google/maps/model/EnumsTest.java index a77d85d73..c9ab6d490 100644 --- a/src/test/java/com/google/maps/model/EnumsTest.java +++ b/src/test/java/com/google/maps/model/EnumsTest.java @@ -218,6 +218,8 @@ public void testCanonicalLiteralsForAddressComponentType() { m.put(AddressComponentType.ADMINISTRATIVE_AREA_LEVEL_3, "administrative_area_level_3"); m.put(AddressComponentType.ADMINISTRATIVE_AREA_LEVEL_4, "administrative_area_level_4"); m.put(AddressComponentType.ADMINISTRATIVE_AREA_LEVEL_5, "administrative_area_level_5"); + m.put(AddressComponentType.ADMINISTRATIVE_AREA_LEVEL_6, "administrative_area_level_6"); + m.put(AddressComponentType.ADMINISTRATIVE_AREA_LEVEL_7, "administrative_area_level_7"); m.put(AddressComponentType.COLLOQUIAL_AREA, "colloquial_area"); m.put(AddressComponentType.LOCALITY, "locality"); m.put(AddressComponentType.WARD, "ward"); From 0f7a5309d30a652d81a8207d031132bce2330283 Mon Sep 17 00:00:00 2001 From: Goutham Vidya Pradhan Date: Fri, 17 Jan 2025 10:01:30 +0100 Subject: [PATCH 2/2] fix: Add missing type administrative_area_level_6 and administrative_area_level_7 in AddressType --- src/main/java/com/google/maps/model/AddressType.java | 12 ++++++++++++ src/test/java/com/google/maps/model/EnumsTest.java | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/main/java/com/google/maps/model/AddressType.java b/src/main/java/com/google/maps/model/AddressType.java index 08157bc98..afe78895d 100644 --- a/src/main/java/com/google/maps/model/AddressType.java +++ b/src/main/java/com/google/maps/model/AddressType.java @@ -86,6 +86,18 @@ public enum AddressType implements UrlValue { */ ADMINISTRATIVE_AREA_LEVEL_5("administrative_area_level_5"), + /** + * A sixth-order civil entity below the country level. This type indicates a minor civil division. + * Not all nations exhibit these administrative levels. + */ + ADMINISTRATIVE_AREA_LEVEL_6("administrative_area_level_6"), + + /** + * A seventh-order civil entity below the country level. This type indicates a minor civil division. + * Not all nations exhibit these administrative levels. + */ + ADMINISTRATIVE_AREA_LEVEL_7("administrative_area_level_7"), + /** A commonly-used alternative name for the entity. */ COLLOQUIAL_AREA("colloquial_area"), diff --git a/src/test/java/com/google/maps/model/EnumsTest.java b/src/test/java/com/google/maps/model/EnumsTest.java index c9ab6d490..439cefc3b 100644 --- a/src/test/java/com/google/maps/model/EnumsTest.java +++ b/src/test/java/com/google/maps/model/EnumsTest.java @@ -57,6 +57,8 @@ public void testCanonicalLiteralsForAddressType() { m.put(AddressType.ADMINISTRATIVE_AREA_LEVEL_3, "administrative_area_level_3"); m.put(AddressType.ADMINISTRATIVE_AREA_LEVEL_4, "administrative_area_level_4"); m.put(AddressType.ADMINISTRATIVE_AREA_LEVEL_5, "administrative_area_level_5"); + m.put(AddressType.ADMINISTRATIVE_AREA_LEVEL_6, "administrative_area_level_6"); + m.put(AddressType.ADMINISTRATIVE_AREA_LEVEL_7, "administrative_area_level_7"); m.put(AddressType.COLLOQUIAL_AREA, "colloquial_area"); m.put(AddressType.LOCALITY, "locality"); m.put(AddressType.WARD, "ward");