properties

package
v0.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: BSD-3-Clause Imports: 9 Imported by: 54

Documentation

Overview

package properties provides methods for deriving and interpreting Who's On First properties.

Index

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 AltGeometries(body []byte) ([]string, error)

func AltLabel added in v0.0.7

func AltLabel(body []byte) (string, error)

func BelongsTo added in v0.0.23

func BelongsTo(body []byte) []int64

func Centroid added in v0.0.4

func Centroid(body []byte) (*orb.Point, string, error)

func Cessation added in v0.0.13

func Cessation(body []byte) string

func Concordances added in v0.0.3

func Concordances(body []byte) map[string]interface{}

func Country added in v0.0.10

func Country(body []byte) string

func Created added in v0.0.17

func Created(body []byte) int64

func Deprecated added in v0.0.13

func Deprecated(body []byte) string

func Hierarchies added in v0.0.4

func Hierarchies(body []byte) []map[string]int64

func Id added in v0.0.2

func Id(body []byte) (int64, error)

func Inception added in v0.0.13

func Inception(body []byte) string

func IsCeased

func IsCeased(body []byte) (flags.ExistentialFlag, error)

func IsCurrent

func IsCurrent(body []byte) (flags.ExistentialFlag, error)

func IsDeprecated

func IsDeprecated(body []byte) (flags.ExistentialFlag, error)

func IsSuperseded

func IsSuperseded(body []byte) (flags.ExistentialFlag, error)

func IsSuperseding

func IsSuperseding(body []byte) (flags.ExistentialFlag, error)

func LastModified added in v0.0.17

func LastModified(body []byte) int64

func MergeCountries added in v0.0.20

func MergeCountries(features ...[]byte) string

func MergeHierarchies added in v0.0.19

func MergeHierarchies(features ...[]byte) ([]map[string]int64, error)

MergeHierarchies returns the unique set of hierarchies defined in 'features'.

func Name added in v0.0.2

func Name(body []byte) (string, error)

func Names added in v0.0.18

func Names(body []byte) map[string][]string

func Placetype added in v0.0.9

func Placetype(body []byte) (string, error)

func Repo added in v0.0.16

func Repo(body []byte) (string, error)

func Source added in v0.0.22

func Source(body []byte) (string, error)

func SupersededBy added in v0.0.14

func SupersededBy(body []byte) []int64

func Supersedes added in v0.0.14

func Supersedes(body []byte) []int64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL