In this example, you might be able to utilise the insidePolygon
API method which should allow you to search in a single or multiple polygons. More about this method and sample structure can be found from this documentation: https://www.algolia.com/doc/api-reference/api-parameters/insidePolygon/#parameter-option-multiple-polygons