1e41f4b71Sopenharmony_ci# oh_location.h 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## Overview 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciDefines APIs for querying the location switch status, and starting and stopping location. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci\@kit LocationKit 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci**Library**: libohlocation.so 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Location.Location.Core 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci**Since**: 13 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ci**Related module**: [Location](_location.md) 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci## Summary 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci### Callback 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci| Name| Description| 25e41f4b71Sopenharmony_ci| -------- | -------- | 26e41f4b71Sopenharmony_ci| [Location_ResultCode](_location.md#location_resultcode)[OH_Location_IsLocatingEnabled](_location.md#oh_location_islocatingenabled) (bool \*enabled) | Checks whether the location switch is enabled. | 27e41f4b71Sopenharmony_ci| [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. | 28e41f4b71Sopenharmony_ci| [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