Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CPoint ¶
type CPoint struct {
Coordinate []float64 `msgpack:"c"`
}
CPoint is a []float64 used as coordinates
type CellIDLoopStorage ¶
CellIDLoopStorage is a cell with associated loops used for storage
type FieldFlag ¶
type FieldFlag struct {
Fields []string
}
FieldFlag reusable parse Value to create import command
type GeoData ¶
type GeoData struct { RS []RegionStorage `msgpack:"rs"` CL []CellIDLoopStorage `msgpack:"cl"` }
GeoData is used to pack the data in a msgpack file
type GeoSearch ¶
type GeoSearch struct { augmentedtree.Tree Debug bool // contains filtered or unexported fields }
GeoSearch provides in memory storage and query engine for regions lookup
func (*GeoSearch) ImportGeoData ¶
ImportGeoData loads geodata file into a map loopID->Region fills the segment tree for fast lookup
type RegionStorage ¶
type RegionStorage struct { Data map[string]string `msgpack:"d"` Code string `msgpack:"i"` Points []CPoint `msgpack:"p"` s2.CellUnion `msgpack:"c"` }
RegionStorage is a region representation for storage use
type S2Interval ¶
func (*S2Interval) HighAtDimension ¶
func (s *S2Interval) HighAtDimension(d uint64) int64
func (*S2Interval) ID ¶
func (s *S2Interval) ID() uint64
func (*S2Interval) LowAtDimension ¶
func (s *S2Interval) LowAtDimension(d uint64) int64
func (*S2Interval) OverlapsAtDimension ¶
func (s *S2Interval) OverlapsAtDimension(iv augmentedtree.Interval, d uint64) bool
Click to show internal directories.
Click to hide internal directories.