Skip to content

Commit

Permalink
fix(specs): search insideBoundingBox type (#2098)
Browse files Browse the repository at this point in the history
  • Loading branch information
aallam authored Oct 9, 2023
1 parent bed6fde commit f8e79a1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 10 deletions.
16 changes: 10 additions & 6 deletions specs/common/schemas/SearchParams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,20 +275,24 @@ aroundLatLngViaIP:
insideBoundingBox:
type: array
items:
type: number
format: double
type: array
items:
type: number
format: double
description: Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
example: [46.650828100116044,7.123046875,45.17210966999772,1.009765625]
example: [[47.3165, 4.9665, 47.3424, 5.0201], [40.9234, 2.1185, 38.6430, 1.9916]]
x-categories:
- Geo-Search

insidePolygon:
type: array
items:
type: number
format: double
type: array
items:
type: number
format: double
description: Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
example: [46.650828100116044,7.123046875,45.17210966999772,1.009765625,49.62625916704081,4.6181640625]
example: [[47.3165, 4.9665, 47.3424, 5.0201, 47.32, 4.9], [40.9234, 2.1185, 38.6430, 1.9916, 39.2587, 2.0104]]
x-categories:
- Geo-Search

Expand Down
32 changes: 28 additions & 4 deletions tests/CTS/methods/requests/search/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,36 @@
"ignorePlurals": false,
"indexName": "theIndexName",
"insideBoundingBox": [
47.3165,
4.9665
[
47.3165,
4.9665,
47.3424,
5.0201
],
[
40.9234,
2.1185,
38.643,
1.9916
]
],
"insidePolygon": [
47.3165,
4.9665
[
47.3165,
4.9665,
47.3424,
5.0201,
47.32,
4.9
],
[
40.9234,
2.1185,
38.643,
1.9916,
39.2587,
2.0104
]
],
"keepDiacriticsOnCharacters": "",
"length": 0,
Expand Down

0 comments on commit f8e79a1

Please sign in to comment.