1# Location Subsystem Changelog
2
3## cl.location.1 Addition of APIs for Obtaining the Wi-Fi and Bluetooth Scanning Result
4
5APIs for obtaining the Wi-Fi and Bluetooth scanning result are added to **@ohos.geoLocationManager.d.ts**. They are all system APIs.
6
7**Change Impact**
8
9The system application can use the Wi-Fi and Bluetooth scanning result obtained by these APIs for network positioning.
10
11**Key API/Component Changes**
12
13| Class| API Type| Declaration| Change Type|
14|  -- | -- | -- | -- |
15|geoLocationManager| method | function on(type: 'locatingRequiredDataChange', config: LocatingRequiredDataConfig, callback: Callback<Array<LocatingRequiredData>>): void; | Added|
16|geoLocationManager| method | function off(type: 'locatingRequiredDataChange', callback?: Callback<Array<LocatingRequiredData>>): void; | Added|
17|geoLocationManager| method | function getLocatingRequiredData(config: LocatingRequiredDataConfig): Promise<Array<LocatingRequiredData>>; | Added|
18
19**Adaptation Guide**
20
21The following example shows how to obtain Wi-Fi and Bluetooth scanning information at a time:
22
23  ```ts
24  import geoLocationManager from '@ohos.geoLocationManager';
25  let config = {'type': 1, 'needStartScan': true, 'scanInterval': 10000};
26  try {
27      geoLocationManager.getLocatingRequiredData(config).then((result) => {
28          console.log('getLocatingRequiredData return: ' + JSON.stringify(result));
29      })
30      .catch((error) => {
31          console.log('promise, getLocatingRequiredData: error=' + JSON.stringify(error));
32      });
33  } catch (err) {
34      console.error("errCode:" + err.code + ",errMessage:" + err.message);
35  }
36  ```
37