@@ -276,20 +276,23 @@ class SearchState implements MultiSearchState {
276276 /// The rectangle is defined by two diagonally opposite points (hereafter `p1` and `p2` ),
277277 /// hence by 4 floats: `p1Lat` , `p1Lng` , `p2Lat` , `p2Lng` .
278278 ///
279- /// For example: `insideBoundingBox = [ 47.3165, 4.9665, 47.3424, 5.0201 ]`
279+ /// For example: `insideBoundingBox = [[ 47.3165, 4.9665, 47.3424, 5.0201] ]`
280280 ///
281281 /// **Usage notes**
282282 /// - You may specify multiple bounding boxes, in which case the search will use the
283- /// union (OR) of the rectangles. To do this, pass either:
284- /// - more than 4 values (must be a multiple of 4: 8, 12…); example:
285- /// `47.3165,4.9665,47.3424,5.0201,40.9234,2.1185,38.6430,1.9916`;
283+ /// union (OR) of the rectangles. To do this, pass a list of lists of
284+ /// floats (each inner array must contain exactly 4 values); example:
285+ /// [
286+ /// [47.3165, 4.9665, 47.3424, 5.0201],
287+ /// [40.9234, 2.1185, 38.6430, 1.9916]
288+ /// ];
286289 /// - [aroundLatLng] and [aroundLatLngViaIP] will be ignored if used along with this
287290 /// parameter.
288291 /// - Be careful when your coordinates cross over the `180th meridian` .
289292 ///
290293 /// Source: [Learn more] (https://www.algolia.com/doc/api-reference/api-parameters/insideBoundingBox/)
291294 ///
292- final List <double >? insideBoundingBox;
295+ final List <List < double > >? insideBoundingBox;
293296
294297 /// Make a copy of the search state.
295298 SearchState copyWith ({
@@ -322,7 +325,7 @@ class SearchState implements MultiSearchState {
322325 dynamic aroundRadius,
323326 int ? aroundPrecision,
324327 int ? minimumAroundRadius,
325- List <double >? insideBoundingBox,
328+ List <List < double > >? insideBoundingBox,
326329 }) =>
327330 SearchState (
328331 attributesToHighlight:
0 commit comments