As per ISO Maintenance Agency and Wikipedia the proper country code for United Kingdom is GB, not UK.

This unnecessarily complicates integration with 3rd-party systems which are usually based on ISO 3166.

http://drupal.org/node/91581 has been a similar/related issue, but I did not want to re-open it.

I'd provide a patch (easy) and a database update (arguable) to fix this bug, unless there is a known problem that would hold it up.

Comments

scott.mclewin’s picture

I second the repair of this error. I've gone through recurring pain on www.folkjam.org to account for the GB/UK difference. Please consider fixing this as part of location 3.

geodaniel’s picture

I agree, we should be sticking to ISO codes and names.

On a related note, we also need to make sure that the ISO country names can be renamed with relative ease (thinking of people wanting to include Northern Ireland in the text for the UK, or communities that may not like the term Former Yugoslav Republic of Macedonia, for example).

sun’s picture

@geodaniel: I'd propose to store the list of countries in the database for this purpose; along with a country name editor in Location's settings. That would also simplify updating the list (when needed), since ISO Agency provides a semicolon delimited text file. Heck, it could even be automatically imported upon module installation!

csc4’s picture

IP to Country/IP2CC already supports the iso3166 table - is there are possibility that could be used?

yesct’s picture

Status: Active » Postponed (maintainer needs more info)

Sounds like there are two issues.

One to fix GB/UK.

Two generalize a 'Good Way' of using ISO data. (probably should be moved to it's own issue)

I looked in location.inc, and it appears that uk is used for United Kingdom. Can someone else please confirm this is still a problem in the newest versions? Marking it postponed needs more info.

yesct’s picture

Issue tags: +location geo-coding, +location ISO codes

this might be related to this ISO issue:
#267494: Recommendation for Country List function

yesct’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

closed. no one has responded. if someone has more information, please update the status to reopen it. thanks.