diff options
author | 6543 <6543@obermui.de> | 2020-05-10 07:40:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 06:40:54 +0100 |
commit | fdf750e4d4273620e774d03db087ab0dd4eef8c5 (patch) | |
tree | 3185d56c8cdbdce9fdd5d320062fed16bee65db9 /vendor/github.com/blevesearch/bleve/geo/geo.go | |
parent | a44854c287ac7127a73ea2790716311ba918dd1d (diff) | |
download | gitea-fdf750e4d4273620e774d03db087ab0dd4eef8c5.tar.gz gitea-fdf750e4d4273620e774d03db087ab0dd4eef8c5.zip |
[Vendor] blevesearch v0.8.1 -> v1.0.7 (#11360)
* Update blevesearch v0.8.1 -> v1.0.7
* make vendor
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'vendor/github.com/blevesearch/bleve/geo/geo.go')
-rw-r--r-- | vendor/github.com/blevesearch/bleve/geo/geo.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vendor/github.com/blevesearch/bleve/geo/geo.go b/vendor/github.com/blevesearch/bleve/geo/geo.go index 583451e308..b18ace4337 100644 --- a/vendor/github.com/blevesearch/bleve/geo/geo.go +++ b/vendor/github.com/blevesearch/bleve/geo/geo.go @@ -33,14 +33,16 @@ var minLonRad = minLon * degreesToRadian var minLatRad = minLat * degreesToRadian var maxLonRad = maxLon * degreesToRadian var maxLatRad = maxLat * degreesToRadian -var geoTolerance = 1E-6 +var geoTolerance = 1e-6 var lonScale = float64((uint64(0x1)<<GeoBits)-1) / 360.0 var latScale = float64((uint64(0x1)<<GeoBits)-1) / 180.0 +var geoHashMaxLength = 12 + // Point represents a geo point. type Point struct { - Lon float64 - Lat float64 + Lon float64 `json:"lon"` + Lat float64 `json:"lat"` } // MortonHash computes the morton hash value for the provided geo point |