[OSM-talk] Getting historic information about usage of a node

Peter Körner osm-lists at mazdermind.de
Tue Sep 15 23:56:28 BST 2009


Hi

I'm working on a changeset-diff tool (that in the long will become a 
revert tool). As a part of this I want to do the following: When a node 
is moved I want to show the geometry of all changed ways before and 
after the move.

I'm getting all data I need from the api but I can't figure out how to 
do this. Currently I'm using GET /api/0.6/node/#id/ways but this call is 
missing the histroriv/version info.

To show the problem here's an example where this is a problem:

In Changeset #5 Node #10 which is in Way #20 is moved.
In Changeset #25 Node #10 is removed from Way #20.

I want to show all changes done with Changeset #5 (and on the long run 
make suggestions on how to revert it). My tool looks up Changeset #5 and 
finds Node #10 in version 2, so it goes on and fetches version 1 of this 
node to find out that it was moved. It now looks for *ways of node #10 
in version 2* but with the current api it can only get the *ways of node 
#10 today*.

So I'm unable to find that moving node #10 also changed way #20, because 
*moving it now* would not change #20 anymore and the api is only able to 
return the current state of the node/way connection.

Am I missing sth.? Can you think of any trick to get this information?

Thank you,
Peter





More information about the talk mailing list