[Openstreetmap-dev] REST

SteveC steve at fractalus.com
Mon Jul 18 15:46:50 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?

POST 

<nodelist>
  <node>1</node>
  <node>1</node>
  <node>1</node>
</nodelist>

to

http://../api/nodes ?

Doesn't quite work, but...

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

So you delete, you get 200 OK. If you then try to GET you get 330
TEMPORARILY UNAVAILABLE (or whatever the code is)

> How's it dealt with in the database?  For that matter, how does versioning 
> work in general

Like this

nodeid | latitude | timestamp


and then you just select the latest timestamp, basically, to get the
current version.

> and what were your thoughts on exposing editing history on 
> openstreetmap.org?

Its easy, it should be done...

have fun,

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




More information about the dev mailing list