# README
osm/replication 
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)
# Functions
Changesets returns the complete list of changesets for the given replication sequence.
CurrentChangesetState returns the current state of the changeset replication.
CurrentDayState returns the current state of the daily replication.
CurrentHourState returns the current state of the hourly replication.
CurrentMinuteState returns the current state of the minutely replication.
Day returns the change diff for a given day.
DayState returns the state of the given daily replication.
Hour returns the change diff for a given hour.
HourState returns the state of the given hourly replication.
Minute returns the change diff for a given minute.
MinuteState returns the state of the given minutely replication.
NewDatasource creates a Datasource using the given client.
# Constants
BaseURL defines the planet server to hit.
DaySeqStart is the beginning of valid day sequence data.
HourSeqStart is the beginning of valid hour sequence data.
MinuteSeqStart is the beginning of valid minutely sequence data.
# Variables
DefaultDatasource is the Datasource used by the package level convenience functions.
# Structs
Datasource defines context around replication data requests.
State returns information about the current replication state.
UnexpectedStatusCodeError is return for a non 200 or 404 status code.
# Interfaces
SeqNum is an interface type that includes MinuteSeqNum, HourSeqNum and DaySeqNum.
# Type aliases
ChangesetSeqNum indicates the sequence of the changeset replication found here: http://planet.osm.org/replication/changesets/.
DaySeqNum indicates the sequence of the daily diff replication found here: http://planet.osm.org/replication/day.
HourSeqNum indicates the sequence of the hourly diff replication found here: http://planet.osm.org/replication/hour.
MinuteSeqNum indicates the sequence of the minutely diff replication found here: http://planet.osm.org/replication/minute.