[Openstreetmap-dev] REST

SteveC steve at fractalus.com
Tue Jul 19 11:28:44 BST 2005


* @ 18/07/05 03:17:16 PM tom at tom-carden.co.uk wrote:
> SteveC wrote:
> >
> >URL http://www.openstreetmap.org/api/node/1234
> >
> 
> That's lovely - more please.  But for 5000 nodes?
> 
> >GET URL - lat/lon, last edited time/user
> >PUT URL - update the above
> >DELETE - delete...
> >
> >how do we deal with resurecting a previously deleted node?
> >
> 
> Don't delete it, just hide it?  i.e. That particular node URI would still 
> work, but that node wouldn't be returned with requests for *current* map 
> data.

Ok. If the node hasn't been created, you get 404, if its just been
deleted then you get 403 Forbidden (updated wiki with this)

> How's it dealt with in the database?  For that matter, how does versioning 
> work in general, and what were your thoughts on exposing editing history on 
> openstreetmap.org?

I thought I'd replied to this but can't find it...

the dbase will have

id | longitude | timestamp
1   2            1
1   3             1234
1   3            2345342
2   1            2342

and the current revision of the node is just the one with the biggest
timestamp. and of course there is a 'deleted' flag

have fun,

SteveC steve at fractalus.com http://www.fractalus.com/steve/




More information about the dev mailing list