Documentation ¶
Index ¶
Constants ¶
const EARTH int64 = 0
EARTH is the Who's On First identifier for the planet Earth.
const ITS_COMPLICATED = -2
ITS_COMPLICATED is the identifier used to indicate that the parentage of a place is complicated in a geopolitical way too nuanced and complex to express otherwise.
const MULTIPLE_COUNTIES int64 = -4
MULTIPLE_COUNTIES is the identifier used to indicate that a place is legitimately parented by multiple counties. For details consult https://github.com/whosonfirst/py-mapzen-whosonfirst-hierarchy/issues/1
const MULTIPLE_NEIGHBOURHOODS int64 = -3
MULTIPLE_NEIGHBOURHOODS is the identifier used to indicate that a place is legitimately parented by multiple neighbouhoods.
const MULTIPLE_PARENTS int64 = -4
MULTIPLE_PARENTS was a misnamed constant and is included for backward compatibility but should otherwise not be used.
const NULL_ISLAND int64 = 1
NULL_ISLAND is the Who's On First identifier for the Null Island.
const UNKNOWN int64 = -1
UNKNOWN is the identifier used to indicate that an otherwise valid identifier is unknown and needs to be resolved.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶ added in v0.0.2
type Provider interface { // NewID returns a new unique 64-bit integers. NewID(context.Context) (int64, error) }
type Provider is an interface for providing uniquer identifiers.
func NewProvider ¶ added in v0.0.2
NweProvider returns a new `WOFProvider` instance configured with default settings.
type WOFProvider ¶ added in v0.0.2
type WOFProvider struct { Provider // contains filtered or unexported fields }
WOFProvider implements the Provider interface for generating unique Who's On First identifiers.