A package to use the OSM replication infrastructure.
OsmSharp enables you to use the OSM replication system from the OSM planet server (and similar services) to keep local OSM data up to date. This package allows to:
- Get all changes between two dates/times.
- Download the associated diffs.
OsmSharp can then be used to apply the diffs.
PM> Install-Package OsmSharp.Replication
The most common use case is to stream diffs from a date/time in the past:
varthePast=DateTime.Now.AddHours(-2).AddDays(-5);varcatchupEnumerator=newCatchupReplicationDiffEnumerator(thePast);while(awaitcatchupEnumerator.MoveNext()){varcurrent=catchupEnumerator.State;vardiff=awaitcatchupEnumerator.Diff();// do something with the diff here!}