geo

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GEO_STEP_MAX        = 26           // Maximum geohash step (52 bits / 2)
	GEO_LAT_MIN         = -85.05112878 // Minimum latitude (Web Mercator limit)
	GEO_LAT_MAX         = 85.05112878  // Maximum latitude (Web Mercator limit)
	GEO_LON_MIN         = -180.0       // Minimum longitude
	GEO_LON_MAX         = 180.0        // Maximum longitude
	EARTH_RADIUS_METERS = 6372797.560856
	MERCATOR_MAX        = 20037726.37 // Maximum mercator projection value
	DEG_TO_RAD          = math.Pi / 180.0
	RAD_TO_DEG          = 180.0 / math.Pi
)

Constants for geohash encoding (Redis uses 52-bit precision)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL