diff --git a/en/application-dev/reference/apis/js-apis-geolocation.md b/en/application-dev/reference/apis/js-apis-geolocation.md index 7d4694bfa7cac837438ecd4f38a9f414316e92e0..01a012065ab52ac2e7a1dc781b608ec865394c31 100644 --- a/en/application-dev/reference/apis/js-apis-geolocation.md +++ b/en/application-dev/reference/apis/js-apis-geolocation.md @@ -1,5 +1,6 @@ # Geolocation +Location services provide basic functions such as GNSS positioning, network positioning, geocoding, reverse geocoding, country code and geofencing. > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -695,7 +696,7 @@ This is a system API and cannot be called by third-party applications. disableLocation(callback: AsyncCallback<boolean>) : void; -Enables the location service. This API uses an asynchronous callback to return the result. +Disables the location service. This API uses an asynchronous callback to return the result. This is a system API and cannot be called by third-party applications. @@ -722,7 +723,7 @@ This is a system API and cannot be called by third-party applications. disableLocation() : Promise<boolean> -Enables the location service. This API uses a promise to return the result. +Disables the location service. This API uses a promise to return the result. This is a system API and cannot be called by third-party applications. diff --git a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md index 171e328299e74745451fb536f7a58004b1d99cba..77ef5727a7148b5bcb46644f777524cc85862bb7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md @@ -1,5 +1,6 @@ # 位置服务 +位置服务提供GNSS定位、网络定位、地理编码、逆地理编码、国家码和地理围栏等基本功能。 > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -695,7 +696,7 @@ enableLocation() : Promise<boolean> disableLocation(callback: AsyncCallback<boolean>) : void; -打开位置服务,使用callback回调异步返回结果。 +关闭位置服务,使用callback回调异步返回结果。 **系统API**:此接口为系统接口,三方应用不支持调用。 @@ -722,7 +723,7 @@ disableLocation(callback: AsyncCallback<boolean>) : void; disableLocation() : Promise<boolean> -打开位置服务,使用Promise方式异步返回结果。 +关闭位置服务,使用Promise方式异步返回结果。 **系统API**:此接口为系统接口,三方应用不支持调用。