Skip to content

Feature Request: Query geospatial data with bounding box #4417

@stephan-nordnes-eriksen

Description

@stephan-nordnes-eriksen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions