> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/cn/proxies/mobile-proxies/location-settings/coordinates.md).

# 坐标

使用特定坐标定位移动代理，并学习如何配置请求头。

坐标定位允许根据提供的纬度/经度和半径参数，选择特定位置的 IP。

要使用此功能，您必须指定一个代理头：

`X-Oxylabs-Geolocation` 其值为 `纬度:经度;精度半径（英里）`.

**例如**，如果您需要来自加拿大池的一个 IP，且位于纬度 49.9235、经度 -97.081 的坐标 10 英里范围内，您的请求将如下所示：

```bash
curl -x pr.oxylabs.io:7777 -U "customer-USERNAME:PASSWORD" --proxy-header "X-Oxylabs-Geolocation: 49.9235:-97.0811;10" https://ip.oxylabs.io/location
```

{% hint style="info" %}
如果在提供的坐标和半径范围内没有找到 IP，您将收到 `502` 响应代码。完整的响应代码列表见 [**此处**](/products/cn/proxies/mobile-proxies/response-codes.md).
{% endhint %}

请注意， `英里精度半径` 的值不能低于 10 英里。

为了扩大搜索范围，您应该增加半径值。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developers.oxylabs.io/products/cn/proxies/mobile-proxies/location-settings/coordinates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
