[OSM-newbies] osm history requests

Iván Sánchez Ortega ivan at sanchezortega.es
Wed Jul 2 11:27:39 BST 2008


El Miércoles, 2 de Julio de 2008, Mohamed escribió:
> Now that is interesting, except I do not know how to formulate a proper
> request! I tried this
> http://api.openstreetmap.org/api/0.5/node/156804/history but to no avail. I
> get empty responses, just nothing.

It works just OK:

ivan at exabox:/tmp$ wget 
http://api.openstreetmap.org/api/0.5/node/156804/history -O - -q
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.5" generator="OpenStreetMap server">
  <node id="156804" lat="61.8083954" lon="10.8497076" user="LA2" 
visible="true" timestamp="2005-07-30T14:27:12+01:00"/>
</osm>


What tools are you using to make the HTTP request?

> Can someone tell me how to use this to get edit history? Also, how to get 
> Edit history for a bounding box rather than just a node?

The history is per-object, not per-area. Request all objects in a bbox, then 
request the individual history for each one.


-- 
----------------------------------
Iván Sánchez Ortega <ivan at sanchezortega.es>

You will have a long and boring life.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openstreetmap.org/pipermail/newbies/attachments/20080702/509bbe1c/attachment.pgp>


More information about the newbies mailing list