1# oh_location.h
2
3
4## 概述
5
6定义查询位置开关状态、启动定位、停止定位的接口。
7
8\@kit LocationKit
9
10**库:** liblocation_ndk.so
11
12**系统能力:** SystemCapability.Location.Location.Core
13
14**起始版本:** 13
15
16**相关模块:**[Location](_location.md)
17
18
19## 汇总
20
21
22### 函数
23
24| 名称 | 描述 |
25| -------- | -------- |
26| [Location_ResultCode](_location.md#location_resultcode) [OH_Location_IsLocatingEnabled](_location.md#oh_location_islocatingenabled) (bool \*enabled) | 查询位置开关是否开启。  |
27| [Location_ResultCode](_location.md#location_resultcode) [OH_Location_StartLocating](_location.md#oh_location_startlocating) (const [Location_RequestConfig](_location.md#location_requestconfig) \*requestConfig) | 启动定位并订阅位置变化。  |
28| [Location_ResultCode](_location.md#location_resultcode) [OH_Location_StopLocating](_location.md#oh_location_stoplocating) (const [Location_RequestConfig](_location.md#location_requestconfig) \*requestConfig) | 停止定位并取消订阅位置变化。  |
29