# 位置 API（精确定位）

Source: [https://docs.qualcomm.com/doc/80-PK177-134Y/topic/location.html](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/location.html)

位置 QESDK 服务 (LocationQesdkService) 为应用程序提供跟踪和校正数据注入 API。应用程序可使用这些 API 从底层 GNSS 引擎获取米级或分米级位置。

- eDGNSS 子系统提供开始/停止跟踪 API 以及用于接收**米**级定位的回调。
- RTK 子系统提供开始/停止跟踪 API 以及用于接收**分米**级定位的回调。

## 注释

- OEM 应用程序也可以使用原生 NTRIP 客户端配置 API。
- 每个应用程序只能激活一个精确定位请求。多个请求将导致后续请求覆盖上一个请求。
- 应用程序需要在 Android manifest 文件中声明 `android.permission.ACCESS_FINE_LOCATION` 用户权限。
- 通用 API（例如配置 API 和校正数据注入 API）在 [eDGNSS](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/edgnss_subsystem_apis.html) 子系统章节说明，且对 eDGNSS 和 RTK 子系统均适用。
- 当屏幕关闭或应用程序转入后台运行时，精确定位更新将停止。一旦屏幕打开，应用程序返回到前台运行，位置更新就会恢复。

- **[eDGNSS 子系统](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/edgnss_subsystem_apis.html)**
- **[RTK 子系统](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/rtk_subsystem_api.html)**
- **[通用位置 API、回调、枚举和结构体](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/common_location_apis_callbacks_enums_and_structs.html)**
- **[代码示例](https://docs.qualcomm.com/doc/80-PK177-134Y/topic/location_pp_sample_code.html)**

Last Published: Jun 22, 2023

[Previous Topic
示例代码](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/qape_example_code.md) [Next Topic
eDGNSS 子系统](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134Y/topics/edgnss_subsystem_apis.md)