orb

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRTree

func NewRTree(cfg *continent.Config) (*rtree.RTree, error)

NewRTree for orb.

Types

type Node

type Node struct {
	Country   string
	Continent string
	Geometry  orb.Geometry
}

Node for the RTree.

func SearchTree

func SearchTree(tree *rtree.RTree, lat, lng float64) *Node

SearchTree for a lat and lng.

func (*Node) IsPointInGeometry

func (n *Node) IsPointInGeometry(lat, lng float64) bool

IsPointInGeometry for data.

Jump to

Keyboard shortcuts

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