# 3.5.7.地理位置查询 (Geo queries)

Elasticsearch支持两种类型的地理数据：geo\_point类型支持成对的纬度/经度，geo\_shape类型支持点、线、圆、多边形、多个多边形等。

在这组的查询中：

**geo\_shape查询**

```
    查找要么相交，包含的，要么指定形状不相交的地理形状的文档。
```

**geo\_bounding\_box查询**

```
    查找落入指定的矩形地理点的文档。
```

**geo\_distance查询**

```
    查找在一个中心点指定范围内的地理点文档。
```

**geo\_distance\_range查询**

```
    和geo\_point查询很像，但范围是开始从中心点到一个指定的距离。
```

**geo\_polygon查询**

```
    查找指定多边形内地理点的文档。
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xiaoxiami.gitbook.io/elasticsearch/ji-chu/35query-dsldslfang-shi-cha-8be229/357di-li-wei-zhi-cha-xun-geo-queries.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
