michaelvl / osm-analytic-tracker

OpenStreetMap Analytic Difference Engine
GNU General Public License v2.0
38 stars 1 forks source link

Using history-latest.osm.pbf #8

Open jgrocha opened 8 years ago

jgrocha commented 8 years ago

Hi, Nice work. Congratulations! I wonder how difficult is to worl with edits from history-latest.osm.pbf instead of live edits. I can extract the edits from history-latest.osm.pbf using a polygon. It would be nice to show what users have edited in a OSM party, for example, but only after the party. This shows the differences in real time. Can I help to make this work with historical data, or is it not feasable? Thanks

michaelvl commented 8 years ago

Hi,

Sorry for the late reply. You can extract edits from a time-range instead of live by using multiple -H arguments like this:

./tracker.py -H '2 hours ago' -H '1 hour ago'

The time specification can also be an absolute time (the implementation use strptime() format string '%Y-%m-%dT%H:%M:%SZ').

Regards.