Modify

Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#5618 closed enhancement (fixed)

Value 'DK' for key 'addr:country' not in presets

Reported by: trekki <bergenholtz@…> Owned by: team
Priority: minor Milestone:
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 11 years ago by joshdoe

Component: Core validatorInternal preset
Description: modified (diff)

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

comment:2 Changed 10 years ago by skyper

Do we need to add the whole list or are there any other plans ?

comment:3 Changed 10 years 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 Changed 10 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 5964/josm:

fix #5618 - Use full list of ISO 3166 country codes from JDK for addr:country in presets with new preset attribute values_from

comment:5 in reply to:  4 Changed 10 years ago by skyper

Replying to Don-vip:

In 5964/josm:

fix #5618 - Use full list of ISO 3166 country codes from JDK for addr:country in presets with new preset attribute values_from

Nice there was someone asking to have lists for brand=* on talk-de@osm today.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.