Hi, I would like to add points on the map using geo add and then searching all points in a rectangle which isn't axis-aligned. There is any option to do it?

Comment From: LiorKogan

With Redis Stack, you can use FT.SEARCH for such geographical queries: find all points within a specified polygon. See https://redis.io/docs/latest/develop/interact/search-and-query/query/geo-spatial/, https://github.com/redis-developer/redis-polygon-search-trains-demo, https://www.youtube.com/watch?v=CegTSglMUks

Comment From: sapirshamun

Thanks! At the end I have an envelope which is axis-aligned, it is defined by x1,x2,y1,y2. I understand that I can use GEOSEARCH with the BYBOX option(which seems to be more efficient), but it seems to require converting the envelope's width and height from degrees to kilometers. Can I directly provide the minimum and maximum latitude and longitude values to GEOSEARCH BYBOX instead of having to calculate distances in kilometers? I believe that Redis internally needs the latitude/longitude definition of the rectangle to perform the search, so I'm not sure why this functionality isn't exposed in the command.