Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new address and address component types #554

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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