I want a full osm object like we get on querying http://www.openstreetmap.org/api/0.6/way/40003158/full but i also want to specify the version of the object too like in http://www.openstreetmap.org/api/0.6/way/40003158/3 I want to have the full object of older versions i.e. result of both queries in combined form asked 10 Apr '14, 09:31 amritkarma |
This is not currently possible. Work is underway to support this in a future version of the Overpass API but it's not quite there yet. Currently, you would have to download an old planet file from planet.openstreetmap.org and then extract the object(s) in question from that. answered 10 Apr '14, 10:01 Frederik Ramm ♦ |
To be slightly more verbose than Frederiks correct answer: What is the meaning of "version 3 of way 40003158"? A way is changed if and only if either it's tags or the list of nodes are modified. There is no new version of a way when one of it's nodes is moved to another position. Therefore let's imagine the following scenario:
Now, after (4) happened you want to get the full version of the way in version 3. But which one do you want? Version 3 of the way had 2 different states: (way3, A2,B1) and (way3, A2,B2). You can imagine that for ways with more nodes there may be many different states of the complex object identified by the same way-object version in OSM. To get what you want you would need to know the timestamp, too, and you would have to adjust your question to one of the following:
All this is possible, but far from trivial yet. As Frederik mentioned, it's a planned feature for Overpass (afaik mainly the last variant of the reformulated question). CAUTION: If you nevertheless would like to tackle that problem yourself, please be careful with API requests regarding full object history, which would be necessary. These are expensive requests on the server and therefore not a good idea to be scripted and done in batch sequences like you would probably need them. answered 10 Apr '14, 10:22 jongleur1983 |