Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Index ¶
type Index struct { *s2.ShapeIndex *s2.ContainsPointQuery }
func OpenIndexFromData ¶
OpenIndexFromData reads the index from a file as follow: uint8 <- size of string Data separated by |, DATA uint32 <- size of s2 polygon encoded, DATA
func (*Index) IndexFeature ¶
func (idx *Index) IndexFeature(f geom.GeoJSONFeature)
func (*Index) Query ¶
func (idx *Index) Query(lat, lng float64) []IndexedLoop
type IndexedLoop ¶
Click to show internal directories.
Click to hide internal directories.