Documentation ¶
Index ¶
- type Candidate
- type Index
- type RTreeIndex
- func (r *RTreeIndex) Cache() cache.Cache
- func (r *RTreeIndex) GetCandidatesByCoord(coord geom.Coord) (*pip.GeoJSONFeatureCollection, error)
- func (r *RTreeIndex) GetIntersectsByCoord(coord geom.Coord, filters filter.Filter) (spr.StandardPlacesResults, error)
- func (r *RTreeIndex) GetIntersectsByPath(path geom.Path, filters filter.Filter) ([]spr.StandardPlacesResults, error)
- func (r *RTreeIndex) IndexFeature(f geojson.Feature) error
- type RTreeResults
- type RTreeSpatialIndex
- type SpatialiteIndex
- func (i *SpatialiteIndex) Cache() cache.Cache
- func (i *SpatialiteIndex) Close() error
- func (i *SpatialiteIndex) GetCandidatesByCoord(coord geom.Coord) (*pip.GeoJSONFeatureCollection, error)
- func (i *SpatialiteIndex) GetIntersectsByCoord(coord geom.Coord, f filter.Filter) (spr.StandardPlacesResults, error)
- func (i *SpatialiteIndex) GetIntersectsByPath(path geom.Path, f filter.Filter) ([]spr.StandardPlacesResults, error)
- func (i *SpatialiteIndex) IndexFeature(f geojson.Feature) error
- type SpatialiteResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index interface { IndexFeature(geojson.Feature) error Cache() cache.Cache Close() error GetIntersectsByCoord(geom.Coord, filter.Filter) (spr.StandardPlacesResults, error) GetCandidatesByCoord(geom.Coord) (*pip.GeoJSONFeatureCollection, error) GetIntersectsByPath(geom.Path, filter.Filter) ([]spr.StandardPlacesResults, error) }
func NewSpatialiteIndex ¶
type RTreeIndex ¶
type RTreeIndex struct { Index Logger *log.WOFLogger // contains filtered or unexported fields }
func NewRTreeIndex ¶
func NewRTreeIndex(c cache.Cache) (*RTreeIndex, error)
func (*RTreeIndex) Cache ¶
func (r *RTreeIndex) Cache() cache.Cache
func (*RTreeIndex) GetCandidatesByCoord ¶
func (r *RTreeIndex) GetCandidatesByCoord(coord geom.Coord) (*pip.GeoJSONFeatureCollection, error)
func (*RTreeIndex) GetIntersectsByCoord ¶
func (*RTreeIndex) GetIntersectsByPath ¶
func (*RTreeIndex) IndexFeature ¶
func (r *RTreeIndex) IndexFeature(f geojson.Feature) error
type RTreeResults ¶
type RTreeResults struct { spr.StandardPlacesResults `json:",omitempty"` Places []spr.StandardPlacesResult `json:"places"` }
func (*RTreeResults) Results ¶
func (r *RTreeResults) Results() []spr.StandardPlacesResult
type RTreeSpatialIndex ¶
type RTreeSpatialIndex struct { Id string // contains filtered or unexported fields }
func (RTreeSpatialIndex) Bounds ¶
func (sp RTreeSpatialIndex) Bounds() *rtreego.Rect
func (RTreeSpatialIndex) Close ¶
func (sp RTreeSpatialIndex) Close() error
type SpatialiteIndex ¶
type SpatialiteIndex struct { Index Logger *log.WOFLogger // contains filtered or unexported fields }
func (*SpatialiteIndex) Cache ¶
func (i *SpatialiteIndex) Cache() cache.Cache
func (*SpatialiteIndex) Close ¶
func (i *SpatialiteIndex) Close() error
func (*SpatialiteIndex) GetCandidatesByCoord ¶
func (i *SpatialiteIndex) GetCandidatesByCoord(coord geom.Coord) (*pip.GeoJSONFeatureCollection, error)
func (*SpatialiteIndex) GetIntersectsByCoord ¶
func (*SpatialiteIndex) GetIntersectsByPath ¶
func (*SpatialiteIndex) IndexFeature ¶
func (i *SpatialiteIndex) IndexFeature(f geojson.Feature) error
type SpatialiteResults ¶
type SpatialiteResults struct { spr.StandardPlacesResults `json:",omitempty"` Places []spr.StandardPlacesResult `json:"places"` }
func (*SpatialiteResults) Results ¶
func (r *SpatialiteResults) Results() []spr.StandardPlacesResult
Click to show internal directories.
Click to hide internal directories.