logo       

Re: REST: msg#00030

Subject: Re: REST
* @ 18/07/05 03:17:16 PM tom@xxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxx http://www.fractalus.com/steve/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe