treeindex

package
v0.0.0-...-12b612f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	// contains filtered or unexported fields
}

Index using insidetree.

func New

func New(opts Options) *Index

func (*Index) Add

func (idx *Index) Add(cellsIn []s2.CellUnion, cellsOut []s2.CellUnion, id uint32)

func (*Index) Stab

func (idx *Index) Stab(lat, lng float64) (insideout.IndexResponse, error)

Stab returns polygon's ids containing lat lng and polygon's ids that may be

type Options

type Options struct {
	// StopOnInside, if you know your data does not overlap (eg countries) set it to true
	// so it won't go looking further and response faster
	StopOnInsideFound bool
}

Options for the insidetree Index.

Jump to

Keyboard shortcuts

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