Lines Matching refs:location
5 …ta from a workout. All these activities are so much associated with the location services on mobil…
7 …the location awareness capability offered by OpenHarmony, mobile devices will be able to obtain re…
9 Your application can call location-specific APIs to obtain the location information of a mobile dev…
13 …location of a mobile device with its coordinates, and uses location technologies such as Global Na…
17 …A coordinate describes a location on the earth using the longitude and latitude in reference to th…
21 …location algorithm offered by the device chip to compute the location information provided by the …
25 …Base station positioning estimates the current location of a mobile device based on the location o…
29 …location of a mobile device based on the locations of WLANs and Bluetooth devices that can be disc…
38 /base/location # Source code of the location subsystem
54 …location function only after the user has granted the permission and turned on the function. If th…
56 …location information is considered sensitive, your application still needs to obtain the location …
62 The following table describes APIs available for obtaining device location information.
64 **Table 1** APIs for obtaining device location information
67 …Callback<Location>) : void | Registers a listener for location changes with a location reque…
68 …Location>) : void | Unregisters the listener for location changes with the corresponding locati…
69 …', callback: Callback<boolean>) : void | Registers a listener for location service status ch…
70 …allback: Callback<boolean>) : void | Unregisters the listener for location service status ch…
71 …ck<Array<Location>>) : void; | Registers a listener for cached GNSS location reports.|
72 …t;Array<Location>>) : void; | Unregisters the listener for cached GNSS location reports.|
79 …, callback: AsyncCallback<Location>) : void | Obtains the current location. This API uses an…
80 …CurrentLocationRequest) : Promise<Location> | Obtains the current location. This API uses a …
81 | getLastLocation(callback: AsyncCallback<Location>) : void | Obtains the previous location. …
82 | getLastLocation() : Promise<Location> | Obtains the previous location. This API uses a prom…
83 | isLocationEnabled(callback: AsyncCallback<boolean>) : void | Checks whether the location se…
84 | isLocationEnabled() : Promise<boolean> | Checks whether the location service is enabled. Th…
85 …callback: AsyncCallback<boolean>) : void | Requests to enable the location service. This API…
86 | requestEnableLocation() : Promise<boolean> | Requests to enable the location service. This …
87 | enableLocation(callback: AsyncCallback<boolean>) : void | Enables the location service. Thi…
88 | enableLocation() : Promise<boolean> | Enables the location service. This API uses a promise…
89 | disableLocation(callback: AsyncCallback<boolean>) : void | Disables the location service. T…
90 | disableLocation() : Promise<boolean> | Disables the location service. This API uses a promi…
95 … AsyncCallback<boolean>) : void; | Sends extended commands to the location subsystem. This A…
96 …tionCommand) : Promise<boolean>; | Sends extended commands to the location subsystem. This A…
97 … void; | Checks whether a user agrees with the privacy statement of the location service. This API…
98 …n>; | Checks whether a user agrees with the privacy statement of the location service. This API…
99 …d; | Sets the user confirmation status for the privacy statement of the location service. This API…
100 …;; | Sets the user confirmation status for the privacy statement of the location service. This API…
105 **Obtaining the device location information:**
107 …Before using basic location capabilities, check whether your application has been granted the perm…
109 The system provides the following location permissions:
114 …OCATION** permission is a must if your application needs to access the device location information.
116 …location information when running on the background, it must be allowed to run on the background i…
120 …eolocation** module by which you can implement all APIs related to the basic location capabilities.
126 …ect provides APIs to notify the system of the location service type and the interval of reporting …
130 …ized APIs into different packages to match your common use cases of the location function. In this…
145 **Table 2** Common use cases of the location function
149 …location of a mobile device outdoors, such as navigation for driving or walking. In this scenario,…
150 …oning technology is mainly used to ensure the location accuracy.<br>By default, the system reports…
151 …ation needs to obtain the current location of a user who is hailing a taxi.<br>By default, the sys…
152 …location for recommendations and push notifications in scenarios such as when the user is browsing…
153 …location service for a higher battery efficiency. When responding to another application requestin…
163 …If the predefined use cases do not meet your needs, you can also use the basic location priority p…
180 …the meter-level location accuracy, depending on the hardware performance of the device. However, i…
181 …location priority| FAST_FIRST_FIX | This policy uses the GNSS positioning, base station positionin…
182 …location in both indoor and outdoor scenarios. The location accuracy depends on the distribution o…
184 …The following example instantiates the **RequestParam** object for the location accuracy priority …
190 4. Instantiate the **Callback** object for the system to report location results.
192 … When the system successfully obtains the real-time location of a device, it will report the locat…
195 var locationChange = (location) => {
196 console.log('locationChanger: data: ' + JSON.stringify(location));
200 5. Start device location.
206 6. (Optional) Stop device location.
212 …our application does not need the real-time device location, it can use the last known device loca…
238 … - Call **getAddressesFromLocation** to convert coordinates into geographical location information.
247 …*GeoAddress** list that matches the specified coordinates and then read location information from …
258 …Your application can obtain the **GeoAddress** list that matches the specified location informatio…
260 …To improve the accuracy of location results, you can set the longitude and latitude ranges in **Ge…