Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
GeoSearch — Support string type for _geo lat and lng fields (#83)
Browse files Browse the repository at this point in the history
* Update specification to support string type for _geo lat and lng fields

* mention types mixing for _geo object
  • Loading branch information
gmourier committed May 17, 2022
1 parent a1ceb5f commit f667b57
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions text/0059-geo-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ According to our user feedback, the lack of a geosearch feature is mentioned as

- Name: `_geo`
- Type: Object
- Format: `{lat:float, lng:float}`
- Format: `{lat:number|string, lng:number|string}`
- Not required

> 💡 if `_geo` is found in the document payload, `lat` and `lng` are required.
> 💡 `lat` and `lng` must be of float value.
> 💡 `lat` and `lng` field type can be mixed. e.g. `lat` can be a string while `lng` is a number in the same `_geo` object.
##### **CSV Format**

Expand Down Expand Up @@ -101,8 +102,8 @@ csv format example
"brand": "F40 LM",
"brand": "Ferrari",
"_geo": {
"lat": 48.862725,
"lng": 2.287592
"lat": "48.862725",
"lng": "2.287592"
}
}
]
Expand Down

0 comments on commit f667b57

Please sign in to comment.