This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/vendor/github.com/blevesearch/bleve/geo
Mura Li 9591185c8f Upgrade blevesearch to v0.8.1 (#9177)
For #1441

a91b427b59
2019-11-27 11:23:33 +02:00
..
README.md
geo.go Upgrade blevesearch to v0.8.1 (#9177) 2019-11-27 11:23:33 +02:00
geo_dist.go
geohash.go Upgrade blevesearch to v0.8.1 (#9177) 2019-11-27 11:23:33 +02:00
parse.go Upgrade blevesearch to v0.8.1 (#9177) 2019-11-27 11:23:33 +02:00
sloppy.go

README.md

geo support in bleve

First, all of this geo code is a Go adaptation of the Lucene 5.3.2 sandbox geo support.

Notes

  • All of the APIs will use float64 for lon/lat values.
  • When describing a point in function arguments or return values, we always use the order lon, lat.
  • High level APIs will use TopLeft and BottomRight to describe bounding boxes. This may not map cleanly to min/max lon/lat when crossing the dateline. The lower level APIs will use min/max lon/lat and require the higher-level code to split boxes accordingly.