Skip to content

Commit 4bacc79

Browse files
Merge pull request #463 from apjanke/add-continent-addresstype
Add "continent" AddressType and AddressComponentType
2 parents c9caa61 + 7c95ced commit 4bacc79

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/com/google/maps/model/AddressComponentType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public enum AddressComponentType {
3131
/** A major intersection, usually of two major roads. */
3232
INTERSECTION("intersection"),
3333

34+
/** A continent. */
35+
CONTINENT("continent"),
36+
3437
/** A political entity. Usually, this type indicates a polygon of some civil administration. */
3538
POLITICAL("political"),
3639

src/main/java/com/google/maps/model/AddressType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public enum AddressType implements UrlValue {
4747
/** A major intersection, usually of two major roads. */
4848
INTERSECTION("intersection"),
4949

50+
/** A continent. */
51+
CONTINENT("continent"),
52+
5053
/** A political entity. Usually, this type indicates a polygon of some civil administration. */
5154
POLITICAL("political"),
5255

src/test/java/com/google/maps/model/EnumsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public void testCanonicalLiteralsForAddressType() {
5151
m.put(AddressType.INTERSECTION, "intersection");
5252
m.put(AddressType.POLITICAL, "political");
5353
m.put(AddressType.COUNTRY, "country");
54+
m.put(AddressType.CONTINENT, "continent");
5455
m.put(AddressType.ADMINISTRATIVE_AREA_LEVEL_1, "administrative_area_level_1");
5556
m.put(AddressType.ADMINISTRATIVE_AREA_LEVEL_2, "administrative_area_level_2");
5657
m.put(AddressType.ADMINISTRATIVE_AREA_LEVEL_3, "administrative_area_level_3");
@@ -204,6 +205,7 @@ public void testCanonicalLiteralsForAddressComponentType() {
204205
m.put(AddressComponentType.INTERSECTION, "intersection");
205206
m.put(AddressComponentType.POLITICAL, "political");
206207
m.put(AddressComponentType.COUNTRY, "country");
208+
m.put(AddressComponentType.CONTINENT, "continent");
207209
m.put(AddressComponentType.ADMINISTRATIVE_AREA_LEVEL_1, "administrative_area_level_1");
208210
m.put(AddressComponentType.ADMINISTRATIVE_AREA_LEVEL_2, "administrative_area_level_2");
209211
m.put(AddressComponentType.ADMINISTRATIVE_AREA_LEVEL_3, "administrative_area_level_3");

0 commit comments

Comments
 (0)