Skip to content

Commit

Permalink
Merge #1735
Browse files Browse the repository at this point in the history
1735: v0.28: accepted `_geo` `lat`, `lng` types r=maryamsulemani97 a=guimachiavelli

Closes #1694

Co-authored-by: gui machiavelli <hey@guimachiavelli.com>
  • Loading branch information
bors[bot] and guimachiavelli authored Jun 29, 2022
2 parents a68eaf9 + 709245a commit 13459d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions learn/advanced/geosearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ In order to start filtering and sorting documents based on their geographic loca

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

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:
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:

```json
{
"_geo": {
"lat": 0.0,
"lng": 0.0
"lng": "0.0"
}
}
```
Expand Down

0 comments on commit 13459d7

Please sign in to comment.