[josm-dev] Deletion conflicts

Frederik Ramm frederik at remote.org
Mon Apr 27 21:51:37 BST 2009


Hi,

Shaun McDonald wrote:
>> The API won't tell you but the rails port will, and will indicate the
>> changeset in which the deletion took place:
>>
>> http://www.openstreetmap.org/api/0.6/node/10000000
>> http://www.openstreetmap.org/browse/node/10000000

> Actually the API is returning the HTTP status 410 GONE, which is not 
> evil for programmers.

In addition, the API can also hand out the information required if we 
query http://www.openstreetmap.org/api/0.6/node/10000000/history.

(Incidentally - how can a node have only one version and this is 
deleted? Would one not have to first create the node, making v1, then 
delete it, making v2?)

But making one HTTP request for every single node to find out whether it 
has been deleted is impractical. We'd have to at least use some common 
sense to reduce the list of queries we make, and even then, given how 
unlikely it is, it sounds like a waste...

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"




More information about the josm-dev mailing list