Versions in this module Expand all Collapse all v1 v1.0.7 Jul 23, 2024 Changes in this version + const BASE32 + const BASE32_BORDER_BOTTOM + const BASE32_BORDER_LEFT + const BASE32_BORDER_RIGHT + const BASE32_BORDER_TOP + const BASE32_DIR_BOTTOM + const BASE32_DIR_LEFT + const BASE32_DIR_RIGHT + const BASE32_DIR_TOP + const DIRECTION_BOTTOM + const DIRECTION_LEFT + const DIRECTION_RIGHT + const DIRECTION_TOP + const EVEN + const MAX_LATITUDE + const MAX_LONGITUDE + const MIN_LATITUDE + const MIN_LONGITUDE + const ODD + var PI float64 = 3.14159265358979324 + func CheckGISPointInArea(polygonList [][2]float64, pointLng float64, pointLat float64) bool + func CrossProduct(a, b, c Point) float64 + func DecodeBounds(geohash string) (LatLng, LatLng) + func GetConvexHullPolygon(points [][2]float64) (result [][2]float64) + func GetNeighbor(geohash string, direction string) string + func GetNeighborsByGeohash(geohash string, precision int, minLat, maxLat, minLng, maxLng float64) []string + func GetNeighborsByLatLon(latitude, longitude float64, precision int) []string + func PolygonToGeohashes(polygon *Polygon, precision int, inner bool) []string + type Bound struct + Max LatLng + Mid LatLng + Min LatLng + func Decode(geohash string) *Bound + type Box struct + MaxLat float64 + MaxLng float64 + MinLat float64 + MinLng float64 + func Encode(latitude, longitude float64, precision int) (string, *Box) + func (this *Box) Height() float64 + func (this *Box) Width() float64 + type GPS struct + XPI float64 + func NewGPS() *GPS + func (gps *GPS) Bd_decrypt(bdLat float64, bdLon float64) map[string]float64 + func (gps *GPS) Bd_encrypt(gcjLat float64, gcjLon float64) map[string]float64 + func (gps *GPS) Bd_wgs(bdLat float64, bdLon float64) map[string]float64 + func (gps *GPS) CoordinatesConvert(lat float64, lon float64, gtype string) map[string]float64 + func (gps *GPS) Distance(latA float64, lonA float64, latB float64, lonB float64) float64 + func (gps *GPS) Gcj_decrypt(gcjLat float64, gcjLon float64) map[string]float64 + func (gps *GPS) Gcj_decrypt_exact(gcjLat float64, gcjLon float64) map[string]float64 + func (gps *GPS) Gcj_encrypt(wgsLat float64, wgsLon float64) map[string]float64 + func (gps *GPS) Mercator_decrypt(mercatorLat float64, mercatorLon float64) map[string]float64 + func (gps *GPS) Mercator_encrypt(wgsLat float64, wgsLon float64) map[string]float64 + func (gps *GPS) Wgs_bd(wgsLat float64, wgsLon float64) map[string]float64 + type Hull struct + type LatLng struct + Lat float64 + Lng float64 + type Neighbors struct + Bottom string + BottomLeft string + BottomRight string + Left string + Right string + Top string + TopLeft string + TopRight string + func GetNeighbors(geohash string) Neighbors + type Point struct + X float64 + Y float64 + type Points []Point + func (points Points) Len() int + func (points Points) Less(i, j int) bool + func (points Points) Swap(i, j int) + type Polygon struct + Path [][2]float64 + func GeohashToPolygon(geo string) *Polygon + func NewPolygon(polygon [][2]float64) *Polygon + func (polygon *Polygon) Centroid() [2]float64 + func (polygon *Polygon) Contains(point [2]float64) bool + func (polygon *Polygon) Inside(p *Polygon) bool + func (polygon *Polygon) Intersect(p *Polygon) bool + func (polygon *Polygon) IntersectWithoutInside(p *Polygon) bool