Closed (fixed)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Address formats
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2011 at 15:35 UTC
Updated:
22 Dec 2014 at 12:14 UTC
Jump to comment: Most recent
Comments
Comment #1
rszrama commentedComment #2
rszrama commentedCan you help me understand why geocoding wouldn't work with the ISO 3166-2 code? In pretty much any instance, we prefer to use ISO codes for abbreviated country / administrative area names. It would be better to find out why another module / service isn't working and use a compatibility layer than it would be to have some administrative areas use the ISO codes and others the full names.
For example, it could be that when rendering an Egyptian address for geocoding we simply determine the full name instead of just passing in the code while still using the code for data storage.
Comment #3
bojanz commentedYeah, ISO codes need to be used here.
Here's Google's list: https://github.com/commerceguys/addressing/blob/master/resources/subdivi... in case anyone wants to look at it while rerolling the patch.
Comment #5
bojanz commentedCommitted: http://cgit.drupalcode.org/addressfield/diff/?id=17975c8
UPU has no official list: http://www.upu.int/fileadmin/documentsFiles/activities/addressingUnit/eg..., this one was created based on Google's dataset and Wikipedia, open a new issue for any corrections.