Modify

Opened 3 years ago

Closed 7 days ago

Last modified 7 days ago

#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)

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

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: Changed 7 days ago by Don-vip

  • Resolution set to fixed
  • Status changed from new to closed

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 7 days 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.