Skip to content

Commit 93f870e

Browse files
authored
fix: missing enum type town square (#662)
1 parent 2eea44f commit 93f870e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ public enum AddressType implements UrlValue {
452452
/** A tourist attraction */
453453
TOURIST_ATTRACTION("tourist_attraction"),
454454

455+
/** Currently not a documented return type. */
456+
TOWN_SQUARE("town_square"),
457+
455458
/**
456459
* Indicates an unknown address type returned by the server. The Java Client for Google Maps
457460
* Services should be updated to support the new value.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public void testCanonicalLiteralsForAddressType() {
181181
m.put(AddressType.ZOO, "zoo");
182182
m.put(AddressType.ARCHIPELAGO, "archipelago");
183183
m.put(AddressType.TOURIST_ATTRACTION, "tourist_attraction");
184+
m.put(AddressType.TOWN_SQUARE, "town_square");
184185

185186
for (Map.Entry<AddressType, String> addressTypeLiteralPair :
186187
addressTypeToLiteralMap.entrySet()) {

0 commit comments

Comments
 (0)