Skip to content

A package to use the OSM replication infrastructure.

License

Notifications You must be signed in to change notification settings

OsmSharp/replication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

replication

Build status

A package to use the OSM replication infrastructure.

  • OsmSharp.Replication: NuGet Badge

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.

Install

PM> Install-Package OsmSharp.Replication

Usage

The most common use case is to stream diffs from a date/time in the past:

var thePast = DateTime.Now.AddHours(-2).AddDays(-5);
var catchupEnumerator = new CatchupReplicationDiffEnumerator(thePast);

while (await catchupEnumerator.MoveNext())
{
    var current = catchupEnumerator.State;

    var diff = await catchupEnumerator.Diff();
    
    // do something with the diff here!
}

About

A package to use the OSM replication infrastructure.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages