Documentation ¶
Index ¶
Constants ¶
const EARTH int64 = constants.EARTH
EARTH is the Who's On First identifier for the planet Earth. This constant is DEPRECATED. Please use the equivalent constant in whosonfirst/go-whosonfirst-feature/constants
const ITS_COMPLICATED = constants.ITS_COMPLICATED
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. This constant is DEPRECATED. Please use the equivalent constant in whosonfirst/go-whosonfirst-feature/constants
const MULTIPLE_COUNTIES int64 = constants.MULTIPLE_COUNTIES
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 This constant is DEPRECATED. Please use the equivalent constant in whosonfirst/go-whosonfirst-feature/constants
const MULTIPLE_NEIGHBOURHOODS int64 = constants.MULTIPLE_NEIGHBOURHOODS
MULTIPLE_NEIGHBOURHOODS is the identifier used to indicate that a place is legitimately parented by multiple neighbouhoods. This constant is DEPRECATED. Please use the equivalent constant in whosonfirst/go-whosonfirst-feature/constants
const MULTIPLE_PARENTS int64 = constants.MULTIPLE_PARENTS
MULTIPLE_PARENTS was a misnamed constant and is included for backward compatibility but should otherwise not be used. This constant is DEPRECATED. Please use the equivalent constant in whosonfirst/go-whosonfirst-feature/constants
const NULL_ISLAND int64 = constants.NULL_ISLAND
NULL_ISLAND is the Who's On First identifier for the Null Island. This constant is DEPRECATED. Please use the equivalent constant in whosonfirst/go-whosonfirst-feature/constants
const UNKNOWN int64 = constants.UNKNOWN
UNKNOWN is the identifier used to indicate that an otherwise valid identifier is unknown and needs to be resolved. This constant is DEPRECATED. Please use the equivalent constant in whosonfirst/go-whosonfirst-feature/constants
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.