whosonfirst

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: BSD-3-Clause Imports: 13 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AltLabel added in v0.12.4

func AltLabel(f geojson.Feature) string

func BelongsTo

func BelongsTo(f geojson.Feature) []int64

func BelongsToOrdered

func BelongsToOrdered(f geojson.Feature) ([]int64, error)

func BelongsToWithCeiling

func BelongsToWithCeiling(f geojson.Feature, str_pt string) ([]int64, error)

func Centroid

func Centroid(f geojson.Feature) (geojson.Centroid, error)

func Cessation

func Cessation(f geojson.Feature) string

func Country

func Country(f geojson.Feature) string

func DateRange

func DateRange(f geojson.Feature) (*time.Time, *time.Time, error)

func DateSpan

func DateSpan(f geojson.Feature) string

func Hierarchies

func Hierarchies(f geojson.Feature) []map[string]int64

func Hierarchy

func Hierarchy(f geojson.Feature) []map[string]int64

func Id

func Id(f geojson.Feature) int64

func Inception

func Inception(f geojson.Feature) string

func IsAlt added in v0.10.1

func IsAlt(f geojson.Feature) bool

func IsBelongsTo

func IsBelongsTo(f geojson.Feature, id int64) bool

func IsCeased

func IsCeased(f geojson.Feature) (flags.ExistentialFlag, error)

func IsCurrent

func IsCurrent(f geojson.Feature) (flags.ExistentialFlag, error)

func IsDeprecated

func IsDeprecated(f geojson.Feature) (flags.ExistentialFlag, error)

func IsSuperseded

func IsSuperseded(f geojson.Feature) (flags.ExistentialFlag, error)

func IsSuperseding

func IsSuperseding(f geojson.Feature) (flags.ExistentialFlag, error)

func Label

func Label(f geojson.Feature) string

func LabelOrDerived

func LabelOrDerived(f geojson.Feature) string

func LastModified

func LastModified(f geojson.Feature) int64

func Name

func Name(f geojson.Feature) string

func Names

func Names(f geojson.Feature) map[string][]string

func NewWOFCentroid

func NewWOFCentroid(lat float64, lon float64, source string) (geojson.Centroid, error)

func ParentId

func ParentId(f geojson.Feature) int64

func Placetype

func Placetype(f geojson.Feature) string

func Repo

func Repo(f geojson.Feature) string

func Source added in v0.10.1

func Source(f geojson.Feature) string

func SupersededBy

func SupersededBy(f geojson.Feature) []int64

func Supersedes

func Supersedes(f geojson.Feature) []int64

Types

type WOFCentroid

type WOFCentroid struct {
	geojson.Centroid
	// contains filtered or unexported fields
}

func (*WOFCentroid) Coord

func (c *WOFCentroid) Coord() geom.Coord

func (*WOFCentroid) Source

func (c *WOFCentroid) Source() string

func (*WOFCentroid) ToString

func (c *WOFCentroid) ToString() (string, error)

type WOFConcordances

type WOFConcordances map[string]string

func Concordances

func Concordances(f geojson.Feature) (WOFConcordances, error)

Jump to

Keyboard shortcuts

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