Documentation
¶
Index ¶
- func ConvertDistance(distance float64, unit string) (converted float64, err []byte)
- func DecodeInt(hash float64) (lat, lon float64)
- func DegToRad(deg float64) float64
- func EncodeInt(lat, lon float64) float64
- func EncodeString(lat, lon float64) string
- func GetDistance(lon1, lat1, lon2, lat2 float64) float64
- func GetLatDistance(lat1, lat2 float64) float64
- func RadToDeg(rad float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDistance ¶
ConvertDistance converts a distance from meters to the desired unit
func DecodeInt ¶
DecodeInt returns the latitude and longitude from a geo hash The hash should be a float64, as it is used as score in a zset
func EncodeInt ¶
EncodeInt returns a geo hash for a given coordinate, and returns it in float64 so it can be used as score in a zset
func EncodeString ¶
func GetDistance ¶
func GetLatDistance ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.