[OSM-dev] Strange: nodes appearing at Lat 0 Lon 0 - Additional Info

Tom Hughes tom at compton.nu
Wed Aug 6 21:24:09 BST 2008

m*sh wrote:
> Am Mi, 6.08.2008, 19:43, schrieb Tom Hughes:
>> m*sh wrote:
>>> The HTTP-Request-Method is DELETE.
>> No, the request method is PUT which is why they aren't being deleted.
> excerpts wiki:
> [http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5]
> Purpose 	HTTP Method and URL 	Payload
> Request 	Response
> Creation 	PUT /api/0.5/<objtype>/create 	XML per DTD 	id
> Retrieval 	GET /api/0.5/<objtype>/<id> 	n/a 	XML per DTD
> Update 	PUT /api/0.5/<objtype>/<id> 	XML per DTD 	empty
> Deletion 	DELETE /api/0.5/<objtype>/<id> 	n/a 	n/a
> -----------------------------------
> So, is the wiki wrong?

No, you misunderstood. You should be doing DELETE but when I looked at 
the logs for that node you gave the ID for I could see you were actually
sending a PUT request.

> Actually I am using a 'put' command but the Request method should be DELETE
> ---
> I've changed it and got the same results :-(

I very much doubt that. People delete nodes all the time without these 
problems. I think you must still be doing a PUT if you are seeing problems.


Tom Hughes (tom at compton.nu)

More information about the dev mailing list