-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Added GEOADD, GEODIST, GEOSEARCH commands #1742
base: master
Are you sure you want to change the base?
Conversation
@bipoool is this a WIP or good for a review? |
GEOADD, GEODIST are done and tested. |
Hey @arpitbbhayani |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @arpitbbhayani
I've created a geo type as discussed
Will add more commands and links soon
internal/types/geo.go
Outdated
} | ||
|
||
// This returns all the nodes which are in the given shape | ||
func (geoReg *GeoRegistry) GeoSearchElementsWithinShape(params map[Param]string, nonParams []string) ([]*wire.GEOElement, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is still large due to the validation part
Should I break the validation and search part into different functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope. that's okay.
f5650f1
to
fa454ed
Compare
Hey @arpitbbhayani |
Other related PRs -
DiceDB-Protos PR - DiceDB/dicedb-protos#7
DiceDB-GO PR - DiceDB/dicedb-go#18
DiceDB-CLI PR - DiceDB/dicedb-cli#48