-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Does not accept state codes for US territories #82
Comments
This is the same problem in the issue #50, Does anyone know how to fix it?
|
Thank you for the report, @spakker and the note @fcopulgar. As mentioned likely related to #50. Scheduled for an upcoming release. |
Json responses for example addresses: John Brewers Bay, Charlotte Amalie West, St Thomas 00802, USVI
West Santa Barbara Avenue, Dededo, Guam
|
Wettengel Rugby Field, Dededo, Guam
|
Conflicting Addressing between Apple Maps and Google Maps. Take Northern Region Community Health Center Apple maps address: Google maps address: In 2014, USPS had to send out 18,000 letters telling people Guam what their "correct mailing addresses" were! In 2016, Amazon sellers forum members condemned a seller for not understanding how to handle shipping to Guam. One user:
US Naval base in Guam: Google Maps address: Google geocode response:
|
US Post office website, Post office location search: Notable that USPS does not acknowledge Guam as either a city or state in this form field. However, USPS requires Guam to be listed as a state in order to deliver mail there. Even they can't handle Guam consistently. So According to USPS's own website, they believe the proper formatting of a postal address for Guam is:
This is a trip, apparently different shipping providers have different requirements for how to address packages destined for US territories: From ShipStation.com help:
|
Oh boy, so some conclusions on this rabbit hole of US Territories. It appears django-address needs to take a position on what the correct addressing of a US Territory is. The reason for this is that google maps geocoder does not provide typical locality / state / administrative level 1 description for Guam. If you look at the Street number, route, It appears it is okay to say the country is the United States beneath it. However if you were to spell out Guam, it is possible a USPS worker will mistake it as an international post and it will dissapear. |
This will need some special work, but here's a proposed path forward:
Guam has sought to be an independent state and just a few weeks ago was inducted into the UNPO or Underrepresented Nations and People's Organization. Each territory has its own history and current status of desire for independence. I think it is important in creating software that describes these places that we take decolonization into account. And to some extent writing code that recategorizes Google's output of Guam as a country into the State field sort of perpetuates and strengthens the existing political status of Guam. However! If you are building an ecommerce site and you want to be able to sell to guam, you still need to save people's addresses and ideally you want stuff you send to actually reach one of the the 168,000 people living in Guam. So to some extent, not writing software that allows major postal carriers to deliver mail also leaves these people out in a very material way. So, perhaps the best thing we could do is to provide some level of education about these people's views towards independent governance while also writing code that allows them to receive packages via "correctly" formatted addresses.
:P I think that's it. This is not the same problem as #50, which is actually a trivial problem compared to this, as it does not involve considering a people's right to self governance or the history of and present status of colonization by the United States. Next Steps:
|
Thanks to @carlosa54 from Puerto Rico for providing some feedback on this. To summarize, their feedback is to go ahead with plans to treat PR as a state and that this is well-normalized in software interfaces at the moment. They specifically point out that Amazon does allow you to put Puerto Rico in as a country if you want. Here's another take at to-do's on this: - Identify each US territory and gather clarifying responses from google geocoder on each to confirm mapping of country field to state code will result in "correct" addresses. - Write tests for country codes for each territory, - Customize address.widgest.AddressWidget and any other code that provides special consideration of these territories. |
It doesn't accept us territory addresses. Please see the following examples below for more information.
ex 1: 2 John Brewers Bay, Charlotte Amalie West, St Thomas 00802, USVI
error: Invalid state code (too long): St Thomas (only accepts up to 3 char)
Comment: It also implies country code is allowed up to 2 char.
ex 2: West Santa Barbara Avenue, Dededo, Guam
error: cannot parse this address. state.location is None.
The text was updated successfully, but these errors were encountered: