From c53d129b4551562f9dd23bb77f34209fa51412d2 Mon Sep 17 00:00:00 2001 From: "David W. Dougherty" Date: Wed, 11 Sep 2024 12:46:29 -0700 Subject: [PATCH] DEV: add TCEs to query > geospatial page --- .../interact/search-and-query/query/geo-spatial.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/develop/interact/search-and-query/query/geo-spatial.md b/content/develop/interact/search-and-query/query/geo-spatial.md index c0a2d5535c..ff57102ccc 100644 --- a/content/develop/interact/search-and-query/query/geo-spatial.md +++ b/content/develop/interact/search-and-query/query/geo-spatial.md @@ -41,9 +41,9 @@ Allowed units are `m`, `km`, `mi`, and `ft`. The following query finds all bicycle stores within a radius of 20 miles around London: -``` +{{< clients-example query_geo geo1 >}} FT.SEARCH idx:bicycle "@store_location:[-0.1778 51.5524 20 mi]" -``` +{{< /clients-example >}} ## Shape @@ -62,12 +62,12 @@ Here is a more detailed explanation of this query: The following example query verifies if a bicycle is within a pickup zone: -``` +{{< clients-example query_geo geo2 >}} FT.SEARCH idx:bicycle "@pickup_zone:[CONTAINS $bike]" PARAMS 2 bike "POINT(-0.1278 51.5074)" DIALECT 3 -``` +{{< /clients-example >}} If you want to find all pickup zones that are approximately within Europe, then you can use the following query: -``` +{{< clients-example query_geo geo3 >}} FT.SEARCH idx:bicycle "@pickup_zone:[WITHIN $europe]" PARAMS 2 europe "POLYGON((-25 35, 40 35, 40 70, -25 70, -25 35))" DIALECT 3 -``` \ No newline at end of file +{{< /clients-example >}} \ No newline at end of file