Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
changesets.go
changesets_test.go
datasource.go
interval.go
interval_test.go
live_test.go

README.md

osm/replication Godoc Reference

Package replication handles fetching the Minute, Hour, Day and Changeset replication and the assocated state value from Planet OSM.

For example, to fetch the current Minute replication state:

num, fullState, err := replication.CurrentMinuteState(ctx)

This is the data in http://planet.osm.org/replication/minute/state.txt updated every minute.

Once you know the change number you want, fetch the change using:

change, err := replication.Minute(ctx, num)
You can’t perform that action at this time.