Documentation ¶ Index ¶ type Index func New(opts Options) *Index func (idx *Index) Add(cellsIn []s2.CellUnion, cellsOut []s2.CellUnion, id uint32) func (idx *Index) Stab(lat, lng float64) (insideout.IndexResponse, error) type Options 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. Source Files ¶ View all Source files index.go Click to show internal directories. Click to hide internal directories.