Skip to content

[Feature Request] Add support for filter Geo fields by GeoBoundingBox #5032

@alexander-schranz

Description

@alexander-schranz

Is your feature request related to a problem? Please describe.

[Feature Request] Add support for filter Geo fields by GeoBoundingBox.

A GeoBoundingBox filter is very common like you see for example on AirBnB website:

Bildschirmfoto 2024-09-16 um 09 36 00

Describe the solution you'd like

The user can give you the north, east, south, west point (which come mostly from JS libraries) which you can use for creating the rectangle Bound and then filter the GEO field (lng, lat) by it.

Describe alternatives you've considered

Alternative would be Polygon based search which is also not yet implement for the GEO type (lng, lat):

but that is sure more complex as rectangle based one, which may be a easier for you to support faster.

Additional context

I'm maintainer of SEAL a search engine abstraction layer which also supports Redisearch. We implement filter by GeoDistance yet with support for Redis but the GeoBoundingBox is there Redis is the last one which does .

PHP-CMSIG/search#420

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions