[OSM-dev] JOSM: Several tags with same key

Matt Amos zerebubuth at gmail.com
Thu Apr 2 23:23:52 BST 2009

On Thu, Apr 2, 2009 at 10:33 PM, Stefan de Konink <stefan at konink.de> wrote:
> Dave Stubbs wrote:
>> And while currently possible in the database, it doesn't work in the
>> current API, so you can't actually enter them  :-)
> Just download an object, duplicate the tag and reupload. Sounds pretty
> possible to me :)

ah, if only it were that simple :-)

the API uses a hash and disallows repeated tags on ways and relations.
but it uses a list for nodes, so you can easily get duplicate tags by
the method you describe.

>> In a few weeks time it just becomes official, and any existing ones
>> will be removed.
> Hopefully first backupped/renamed for the useful tags.

duplicate keys are made unique by adding a postfix number. an extra
tag is also added, so that the modification is documented and can be
searched for.



More information about the dev mailing list