1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Added binding for GEORADIUSBYMEMBER, GEODIST AND GEOHASH.

Change-Id: Ia6144617f42629af4c022e595c444ddc6d66f1a3
This commit is contained in:
Ian Chan
2015-10-14 22:39:39 +01:00
committed by Vladimir Mihailenco
parent 0880b0b20c
commit 126513f1fb
3 changed files with 176 additions and 49 deletions

View File

@ -779,16 +779,13 @@ type GeoLocation struct {
// GeoRadiusQuery is used with GeoRadius to query geospatial index.
type GeoRadiusQuery struct {
Key string
Longitude float64
Latitude float64
Radius float64
Radius float64
// Can be m, km, ft, or mi. Default is km.
Unit string
WithCoordinates bool
WithDistance bool
WithGeoHash bool
Count int
Unit string
WithCoord bool
WithDist bool
WithGeoHash bool
Count int
// Can be ASC or DESC. Default is no sort order.
Sort string
}