#5618 closed enhancement (fixed)
Value 'DK' for key 'addr:country' not in presets
| Reported by: | trekki | Owned by: | team |
|---|---|---|---|
| Priority: | minor | Component: | Internal preset |
| Version: | latest | Keywords: | |
| Cc: |
Description (last modified by joshdoe)
when entering the key addr:country with the value DK i get a warning as in the summary.
Please add this and the most common used values. A list of the possible values can be found here
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Decoding_table
Attachments (0)
Change History (5)
comment:1 Changed 16 months ago by joshdoe
- Component changed from Core validator to Internal preset
- Description modified (diff)
comment:2 Changed 7 days ago by skyper
Do we need to add the whole list or are there any other plans ?
comment:3 Changed 7 days ago by Don-vip
Java maintains an updated list of ISO 3166 codes:
http://stackoverflow.com/a/140235/2257172
http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html#getISOCountries()
We should use it in order to not reinvent the wheel by maintaining the list ourselves.
comment:4 follow-up: ↓ 5 Changed 7 days ago by Don-vip
- Resolution set to fixed
- Status changed from new to closed
In 5964/josm:



Note that these would be added to defaultpresets.xml. I suppose we'd only want to use the officially assigned values.