Skip to content

Commit

Permalink
Merge pull request #554 from apjanke/new-place-types
Browse files Browse the repository at this point in the history
Add new address and address component types
  • Loading branch information
domesticmouse authored Mar 20, 2019
2 parents 027b37d + 0a0dded commit 5070d1b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/com/google/maps/model/AddressComponentType.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,18 @@ public enum AddressComponentType {
/** A painter. */
PAINTER("painter"),

/** An archipelago. */
ARCHIPELAGO("archipelago"),

/** A museum. */
MUSEUM("museum"),

/** A campground. */
CAMPGROUND("campground"),

/** An RV park. */
RV_PARK("rv_park"),

/**
* Indicates an unknown address component type returned by the server. The Java Client for Google
* Maps Services should be updated to support the new value.
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/google/maps/model/AddressType.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ public enum AddressType implements UrlValue {

/** Currently not a documented return type. */
ZOO("zoo"),

/** An archipelago. */
ARCHIPELAGO("archipelago"),

/**
* Indicates an unknown address type returned by the server. The Java Client for Google Maps
* Services should be updated to support the new value.
Expand Down
5 changes: 5 additions & 0 deletions src/test/java/com/google/maps/model/EnumsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public void testCanonicalLiteralsForAddressType() {
m.put(AddressType.TAXI_STAND, "taxi_stand");
m.put(AddressType.VETERINARY_CARE, "veterinary_care");
m.put(AddressType.ZOO, "zoo");
m.put(AddressType.ARCHIPELAGO, "archipelago");

for (Map.Entry<AddressType, String> addressTypeLiteralPair :
addressTypeToLiteralMap.entrySet()) {
Expand Down Expand Up @@ -268,6 +269,10 @@ public void testCanonicalLiteralsForAddressComponentType() {
m.put(AddressComponentType.HEALTH, "health");
m.put(AddressComponentType.INSURANCE_AGENCY, "insurance_agency");
m.put(AddressComponentType.PAINTER, "painter");
m.put(AddressComponentType.ARCHIPELAGO, "archipelago");
m.put(AddressComponentType.MUSEUM, "museum");
m.put(AddressComponentType.RV_PARK, "rv_park");
m.put(AddressComponentType.CAMPGROUND, "campground");

for (Map.Entry<AddressComponentType, String> AddressComponentTypeLiteralPair :
addressComponentTypeToLiteralMap.entrySet()) {
Expand Down

0 comments on commit 5070d1b

Please sign in to comment.