Skip to content

Commit 45c5df8

Browse files
authored
DEV: add TCEs to query > geospatial page (#660)
1 parent d76c7f1 commit 45c5df8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/develop/interact/search-and-query/query/geo-spatial.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Allowed units are `m`, `km`, `mi`, and `ft`.
4141

4242
The following query finds all bicycle stores within a radius of 20 miles around London:
4343

44-
```
44+
{{< clients-example query_geo geo1 >}}
4545
FT.SEARCH idx:bicycle "@store_location:[-0.1778 51.5524 20 mi]"
46-
```
46+
{{< /clients-example >}}
4747

4848
## Shape
4949

@@ -62,12 +62,12 @@ Here is a more detailed explanation of this query:
6262

6363
The following example query verifies if a bicycle is within a pickup zone:
6464

65-
```
65+
{{< clients-example query_geo geo2 >}}
6666
FT.SEARCH idx:bicycle "@pickup_zone:[CONTAINS $bike]" PARAMS 2 bike "POINT(-0.1278 51.5074)" DIALECT 3
67-
```
67+
{{< /clients-example >}}
6868

6969
If you want to find all pickup zones that are approximately within Europe, then you can use the following query:
7070

71-
```
71+
{{< clients-example query_geo geo3 >}}
7272
FT.SEARCH idx:bicycle "@pickup_zone:[WITHIN $europe]" PARAMS 2 europe "POLYGON((-25 35, 40 35, 40 70, -25 70, -25 35))" DIALECT 3
73-
```
73+
{{< /clients-example >}}

0 commit comments

Comments
 (0)