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:
committed by
Vladimir Mihailenco
parent
0880b0b20c
commit
126513f1fb
15
command.go
15
command.go
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user