1# oh_location.h
2
3
4## Overview
5
6Defines APIs for querying the location switch status, and starting and stopping location.
7
8\@kit LocationKit
9
10**Library**: libohlocation.so
11
12**System capability**: SystemCapability.Location.Location.Core
13
14**Since**: 13
15
16**Related module**: [Location](_location.md)
17
18
19## Summary
20
21
22### Callback
23
24| Name| Description|
25| -------- | -------- |
26| [Location_ResultCode](_location.md#location_resultcode)[OH_Location_IsLocatingEnabled](_location.md#oh_location_islocatingenabled) (bool \*enabled) | Checks whether the location switch is enabled. |
27| [Location_ResultCode](_location.md#location_resultcode)[OH_Location_StartLocating](_location.md#oh_location_startlocating) (const [Location_RequestConfig](_location.md#location_requestconfig) \*requestConfig) | Starts locating and subscribes to location changes. |
28| [Location_ResultCode](_location.md#location_resultcode)[OH_Location_StopLocating](_location.md#oh_location_stoplocating) (const [Location_RequestConfig](_location.md#location_requestconfig) \*requestConfig) | Stops locating and unsubscribes from location changes. |
29