Skip to content

Commit 13459d7

Browse files
Merge #1735
1735: v0.28: accepted `_geo` `lat`, `lng` types r=maryamsulemani97 a=guimachiavelli Closes #1694 Co-authored-by: gui machiavelli <[email protected]>
2 parents a68eaf9 + 709245a commit 13459d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

learn/advanced/geosearch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ In order to start filtering and sorting documents based on their geographic loca
88

99
`_geo` is a reserved field. If you include it in your documents, Meilisearch expects its value to conform to a specific format.
1010

11-
When using JSON and NDJSON, `_geo` must contain an object with two keys: `lat` and `lng`. Both must contain a floating point number indicating, respectively, latitude and longitude:
11+
When using JSON and NDJSON, `_geo` must contain an object with two keys: `lat` and `lng`. Both fields must contain either a floating point number or a string indicating, respectively, latitude and longitude:
1212

1313
```json
1414
{
1515
1616
"_geo": {
1717
"lat": 0.0,
18-
"lng": 0.0
18+
"lng": "0.0"
1919
}
2020
}
2121
```

0 commit comments

Comments
 (0)