Skip to content

Commit d50732b

Browse files
DOC-2761 stash latest changes
1 parent c0dae60 commit d50732b

File tree

1 file changed

+15
-5
lines changed
  • content/develop/interact/search-and-query/indexing

1 file changed

+15
-5
lines changed

content/develop/interact/search-and-query/indexing/geoindex.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,30 @@ Redis supports two different schema types for geospatial data:
2424
the JSON object shown below as `GEO`:
2525

2626
```json
27-
{
27+
{
28+
"description": "Navy Blue Slippers",
29+
"price": 45.99,
30+
"city": "Denver",
2831
"location": "-104.991531, 39.742043"
2932
}
3033
```
3134
- `GEOSHAPE`: This uses a subset of the
3235
[Well-Known Text (WKT)](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry)
33-
format to specify both points and points and polygons. A
36+
format to specify both points and polygons. A
3437
`GEOSHAPE` field supports more advanced queries that `GEO`,
3538
such as checking if one shape overlaps or contains another.
36-
For example, the `rect` field of the JSON object shown
37-
below specifies a rectangular area:
39+
For example, the `geom` field of the JSON object shown
40+
below specifies a point (in Cartesian coordinates):
3841

3942
```json
4043
{
41-
"rect": "POLYGON ((2 2.5, 2 3.5, 3.5 3.5, 3.5 2.5, 2 2.5))"
44+
"name": "Purple Point",
45+
"geom": "POINT (2 2)"
4246
}
4347
```
48+
49+
The sections below describe these schema types in more detail.
50+
51+
## `GEO`
52+
53+

0 commit comments

Comments
 (0)