# README
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.
# Functions
BoundingBoxContains checks whether the lon/lat point is within the box.
No description provided by the author
DecodeGeoHash decodes the string geohash faster with higher precision.
DegreesToRadians converts an angle in degrees to radians.
No description provided by the author
ExtractGeoPoint takes an arbitrary interface{} and tries it's best to interpret it is as geo point.
Haversin computes the distance between two points.
MortonHash computes the morton hash value for the provided geo point This point is ordered as lon, lat.
MortonUnhashLat extracts the latitude value from the provided morton hash.
MortonUnhashLon extracts the longitude value from the provided morton hash.
ParseDistance attempts to parse a distance string and return distance in meters.
ParseDistanceUnit attempts to parse a distance unit and return the multiplier for converting this to meters.
RadiansToDegrees converts an angle in radians to degress.
No description provided by the author
RectIntersects checks whether rectangles a and b intersect.
RectWithin checks whether box a is within box b.
# Variables
GeoBits is the number of bits used for a single geo point Currently this is 32bits for lon and 32bits for lat.