[OSM-dev] good way to do an automated import

Frederik Ramm frederik at remote.org
Wed Apr 8 13:33:22 BST 2009


Hi,

marcus.wolschon at googlemail.com wrote:
> I will have my tool store localy what elements have already been
> imported and would like it to store the IDs assigned to them
> by the API0.6 and the changeset-id (in case I need to rollback
> something later). How could I do that?

If you do a diff upload against 0.6 then you get a special XML document 
in return that maps your negatvie Ids to those assigned by the API. JOSM 
has a class named "DiffResultReader" or so that parses this response if 
you want an example.

Bye
Frederik





More information about the dev mailing list