[OSM-dev] How reconstrucing a way from the history?

Frederik Ramm frederik at remote.org
Mon Jan 12 13:02:33 GMT 2009


Hi,

Nevel Gandish wrote:
> I currently try to reconstruct ways from the history. Retrieving the
> ways is no problem. Retrieving nodes from the history isn't too.
> But how to put them together? Not every node has a entry for every
> entry in a ways history.
> Is figuring out by comparing the timestamps the right method or is
> there a better one?

I would suggest you download an old planet file that contained the 
"right" data and extract the data from there; this gives you a 
(relatively) consistent set of ways and matching nodes, and causes less 
strain on the API.

You cannot rely on ways and nodes having identical timestamps.

Bye
Frederik




More information about the dev mailing list