-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Description
Query geospatial data with a bounding box
It would be a great addition to the Redis geospatial query system to be able to query with a bounding box.
Use case; Populate a map view with points of interest from the geospatial data. Eg. An app where a user opens a map, moves the view to a specific area, and then would like to see all points of interests within this crop of the map.
Proposed command(a): GEOBOUNDINGBOX key longitudeTopLeft latitudeTopLeft longitudeBottomRight latitudeBottomRight [WITHCOORD] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key]
Proposed command(b): GEOBOUNDINGBOX key longitudeCenter latitudeCenter height width m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]
I am not familiar with the details of how the geospatial system is implemented, so I am not aware of any difficulties relating to creating this command. Between a and b I would prefer b.
I am submitting this request in response to the answer on Stackoverflow:
https://stackoverflow.com/questions/47110812/query-redis-geospatial-data-with-a-bounding-box/47111206#47111206