Documentation ¶
Overview ¶
package properties provides methods for deriving and interpreting Who's On First properties.
Index ¶
- Constants
- func AltGeometries(body []byte) ([]string, error)
- func AltLabel(body []byte) (string, error)
- func BelongsTo(body []byte) []int64
- func Centroid(body []byte) (*orb.Point, string, error)
- func Cessation(body []byte) string
- func Concordances(body []byte) map[string]interface{}
- func Country(body []byte) string
- func Created(body []byte) int64
- func Deprecated(body []byte) string
- func Hierarchies(body []byte) []map[string]int64
- func Id(body []byte) (int64, error)
- func Inception(body []byte) string
- func IsCeased(body []byte) (flags.ExistentialFlag, error)
- func IsCurrent(body []byte) (flags.ExistentialFlag, error)
- func IsDeprecated(body []byte) (flags.ExistentialFlag, error)
- func IsSuperseded(body []byte) (flags.ExistentialFlag, error)
- func IsSuperseding(body []byte) (flags.ExistentialFlag, error)
- func LastModified(body []byte) int64
- func MergeCountries(features ...[]byte) string
- func MergeHierarchies(features ...[]byte) ([]map[string]int64, error)
- func Name(body []byte) (string, error)
- func Names(body []byte) map[string][]string
- func ParentId(body []byte) (int64, error)
- func Placetype(body []byte) (string, error)
- func Repo(body []byte) (string, error)
- func Source(body []byte) (string, error)
- func SupersededBy(body []byte) []int64
- func Supersedes(body []byte) []int64
Constants ¶
View Source
const COUNTRY_COMPLICATED string = "XZ"
View Source
const COUNTRY_DISPUTED string = "XX"
View Source
const COUNTRY_KOSOVO string = "XK"
View Source
const COUNTRY_NULLISLAND string = "XN"
View Source
const COUNTRY_SOMALILAND string = "XS"
View Source
const COUNTRY_UNKNOWN string = "XY"
Variables ¶
This section is empty.
Functions ¶
func AltGeometries ¶ added in v0.0.24
func Concordances ¶ added in v0.0.3
func Deprecated ¶ added in v0.0.13
func Hierarchies ¶ added in v0.0.4
func IsDeprecated ¶
func IsSuperseded ¶
func IsSuperseding ¶
func LastModified ¶ added in v0.0.17
func MergeCountries ¶ added in v0.0.20
func MergeHierarchies ¶ added in v0.0.19
MergeHierarchies returns the unique set of hierarchies defined in 'features'.
func ParentId ¶ added in v0.0.11
https://github.com/whosonfirst/whosonfirst-properties/tree/main/properties/wof#parent_id
func SupersededBy ¶ added in v0.0.14
func Supersedes ¶ added in v0.0.14
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.