I'm using the google maps api to check an address users add by passing the zip code and returning a formatted address that I can compare to see if it matches.
This is the call:

```
resultNodeList = (NodeList) xpath.evaluate("/GeocodeResponse/result/formatted_address", geocoderResultDocument, XPathConstants.NODESET)

```

The problem is some zipcode can be a part of mutiple cities/towns.
Here is the result for the google api for zip code 77380:

```
<GeocodeResponse>
<status>OK</status>
<result>
<type>postal_code</type>
<formatted_address>Spring, TX 77380, USA</formatted_address>
<address_component>
<long_name>77380</long_name>
<short_name>77380</short_name>
<type>postal_code</type>
</address_component>
<address_component>
<long_name>Spring</long_name>
<short_name>Spring</short_name>
<type>locality</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Texas</long_name>
<short_name>TX</short_name>
<type>administrative_area_level_1</type>
<type>political</type>
</address_component>
<address_component>
<long_name>United States</long_name>
<short_name>US</short_name>
<type>country</type>
<type>political</type>
</address_component>
<geometry>...</geometry>
<postcode_locality>Shenandoah</postcode_locality>
<postcode_locality>Spring</postcode_locality>
<postcode_locality>The Woodlands</postcode_locality>
<place_id>ChIJUXEWvwI0R4YRWJe_Gb6C8Bk</place_id>
</result>
</GeocodeResponse>

```

The user in this example lives in The Woodlands TX, not Spring TX. 
What I'm trying to do now is pull in the postcode\_locality so that I can compare any of the cities/towns listed (Shenandoah, Spring,The Woodlands)

I tired doing this :

```
resultNodeList = (NodeList) xpath.evaluate("/GeocodeResponse/result/postcode_locality", geocoderResultDocument, XPathConstants.NODESET);

```

but I only got back Shenandoah.
I can do /GeocodeResponse/result/postcode\_locality[1] and get each location manually but this code needs to work for any zip code entered.

Is there a way pull in a list of postcode\_locality?