google / libaddressinput

Google’s postal address library, powering Android and Chromium
Apache License 2.0
580 stars 104 forks source link

Issues with Guam Zip Code Regular Expression #150

Closed ivanoxq closed 6 years ago

ivanoxq commented 6 years ago

Hi Guys,

The data coming back from data/US/GU has regular expression "969([1-2]\d|3[12])" which needs to be changed to 969([1-2]\d|3[012]) as its missing the recognition of Talofofo, Guam 96930.

sockix commented 6 years ago

Hi. Thank you for the feedback.

Do you have an example address which you expect the 96930 to work with? As far as I can tell, Talofofo should use the 96915 as it's postal code.

sockix commented 6 years ago

See: https://tools.usps.com/go/ZipLookupResultsAction!input.action?resultMode=2&companyName=&address1=&address2=&city=&state=Select&urbanCode=&postalCode=96930&zip=

ivanoxq@ I'm going to close this issue, but feel free to reopen if you disagree with my findings. Thx.