google / libaddressinput

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

Missing administrative areas for Algeria (DZ) #158

Open bojanz opened 6 years ago

bojanz commented 6 years ago

DZ has an address format, an administrative area field, but no administrative areas.

A user suggested the following: https://github.com/commerceguys/addressing/pull/97/files

mountaingoatx commented 6 years ago

Hi, it looks like DZ has a city field and no administrative area field in the address format. Can you clarify what you mean?

mimckenna commented 6 years ago

Even though ISO-3166-2 sub-region codes exist for Algeria, and that the Algerian postal code is keyed directly off those sub-region codes, according to UPU and the Algerian Post, the Region is not used or displayed in a postal address. This image is from poste.dz:

image

That being said, the administrative region is used when entering an address in forms. Examples are when ordering a credit card through the post office (examples in french, arabic)

image

So, based on the usage, I would think if you added the sub_isoids and sub_keys, you would not add province %S to the "fmt" field. The closest existing metadata is what is done for Andora.