1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|新增|NA|类名:geoLocationManager;<br>方法or属性:function on(type: 'locatingRequiredDataChange', config: LocatingRequiredDataConfig, callback: Callback\<Array\<LocatingRequiredData>>): void;|@ohos.geoLocationManager.d.ts| 4|新增|NA|类名:geoLocationManager;<br>方法or属性:function off(type: 'locatingRequiredDataChange', callback?: Callback\<Array\<LocatingRequiredData>>): void;|@ohos.geoLocationManager.d.ts| 5|新增|NA|类名:geoLocationManager;<br>方法or属性:function getLocatingRequiredData(config: LocatingRequiredDataConfig): Promise\<Array\<LocatingRequiredData>>;|@ohos.geoLocationManager.d.ts| 6|新增|NA|类名:LocatingRequiredDataConfig;<br>方法or属性:type: LocatingRequiredDataType;|@ohos.geoLocationManager.d.ts| 7|新增|NA|类名:LocatingRequiredDataConfig;<br>方法or属性:needStartScan: boolean;|@ohos.geoLocationManager.d.ts| 8|新增|NA|类名:LocatingRequiredDataConfig;<br>方法or属性:scanInterval?: number;|@ohos.geoLocationManager.d.ts| 9|新增|NA|类名:LocatingRequiredDataConfig;<br>方法or属性:scanTimeout?: number;|@ohos.geoLocationManager.d.ts| 10|新增|NA|类名:LocatingRequiredData;<br>方法or属性:wifiData?: WifiScanInfo;|@ohos.geoLocationManager.d.ts| 11|新增|NA|类名:LocatingRequiredData;<br>方法or属性:bluetoothData?: BluetoothScanInfo;|@ohos.geoLocationManager.d.ts| 12|新增|NA|类名:WifiScanInfo;<br>方法or属性:ssid: string;|@ohos.geoLocationManager.d.ts| 13|新增|NA|类名:WifiScanInfo;<br>方法or属性:bssid: string;|@ohos.geoLocationManager.d.ts| 14|新增|NA|类名:WifiScanInfo;<br>方法or属性:rssi: number;|@ohos.geoLocationManager.d.ts| 15|新增|NA|类名:BluetoothScanInfo;<br>方法or属性:rssi: number;|@ohos.geoLocationManager.d.ts| 16|新增|NA|类名:WifiScanInfo;<br>方法or属性:frequency: number;|@ohos.geoLocationManager.d.ts| 17|新增|NA|类名:WifiScanInfo;<br>方法or属性:timestamp: number;|@ohos.geoLocationManager.d.ts| 18|新增|NA|类名:BluetoothScanInfo;<br>方法or属性:timestamp: number;|@ohos.geoLocationManager.d.ts| 19|新增|NA|类名:BluetoothScanInfo;<br>方法or属性:deviceName: string;|@ohos.geoLocationManager.d.ts| 20|新增|NA|类名:BluetoothScanInfo;<br>方法or属性:macAddress: string;|@ohos.geoLocationManager.d.ts| 21|新增|NA|类名:LocatingRequiredDataType;<br>方法or属性:WIFI = 1|@ohos.geoLocationManager.d.ts| 22|新增|NA|类名:LocatingRequiredDataType;<br>方法or属性:BLUETOOTH|@ohos.geoLocationManager.d.ts| 23|权限有变化|类名:geolocation;<br>方法or属性:function getCurrentLocation(callback: AsyncCallback\<Location>): void;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function getCurrentLocation(callback: AsyncCallback\<Location>): void;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 24|权限有变化|类名:geolocation;<br>方法or属性:function getCurrentLocation(request?: CurrentLocationRequest): Promise\<Location>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function getCurrentLocation(request?: CurrentLocationRequest): Promise\<Location>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 25|权限有变化|类名:geolocation;<br>方法or属性:function getLastLocation(): Promise\<Location>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function getLastLocation(): Promise\<Location>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 26|权限有变化|类名:geolocation;<br>方法or属性:function isLocationEnabled(): Promise\<boolean>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function isLocationEnabled(): Promise\<boolean>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 27|权限有变化|类名:geolocation;<br>方法or属性:function requestEnableLocation(): Promise\<boolean>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function requestEnableLocation(): Promise\<boolean>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 28|权限有变化|类名:geolocation;<br>方法or属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise\<Array\<GeoAddress>>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise\<Array\<GeoAddress>>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 29|权限有变化|类名:geolocation;<br>方法or属性:function getAddressesFromLocationName(request: GeoCodeRequest): Promise\<Array\<GeoAddress>>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function getAddressesFromLocationName(request: GeoCodeRequest): Promise\<Array\<GeoAddress>>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 30|权限有变化|类名:geolocation;<br>方法or属性:function isGeoServiceAvailable(): Promise\<boolean>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function isGeoServiceAvailable(): Promise\<boolean>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 31|权限有变化|类名:geolocation;<br>方法or属性:function getCachedGnssLocationsSize(): Promise\<number>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function getCachedGnssLocationsSize(): Promise\<number>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 32|权限有变化|类名:geolocation;<br>方法or属性:function flushCachedGnssLocations(): Promise\<boolean>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function flushCachedGnssLocations(): Promise\<boolean>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 33|权限有变化|类名:geolocation;<br>方法or属性:function sendCommand(command: LocationCommand): Promise\<boolean>;<br>旧版本信息:|类名:geolocation;<br>方法or属性:function sendCommand(command: LocationCommand): Promise\<boolean>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 34|权限有变化|类名:GeoAddress;<br>方法or属性:latitude?: number;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:latitude?: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 35|权限有变化|类名:GeoAddress;<br>方法or属性:longitude?: number;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:longitude?: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 36|权限有变化|类名:GeoAddress;<br>方法or属性:locale?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:locale?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 37|权限有变化|类名:GeoAddress;<br>方法or属性:placeName?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:placeName?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 38|权限有变化|类名:GeoAddress;<br>方法or属性:countryCode?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:countryCode?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 39|权限有变化|类名:GeoAddress;<br>方法or属性:countryName?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:countryName?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 40|权限有变化|类名:GeoAddress;<br>方法or属性:administrativeArea?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:administrativeArea?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 41|权限有变化|类名:GeoAddress;<br>方法or属性:subAdministrativeArea?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:subAdministrativeArea?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 42|权限有变化|类名:GeoAddress;<br>方法or属性:locality?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:locality?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 43|权限有变化|类名:GeoAddress;<br>方法or属性:subLocality?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:subLocality?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 44|权限有变化|类名:GeoAddress;<br>方法or属性:roadName?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:roadName?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 45|权限有变化|类名:GeoAddress;<br>方法or属性:subRoadName?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:subRoadName?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 46|权限有变化|类名:GeoAddress;<br>方法or属性:premises?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:premises?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 47|权限有变化|类名:GeoAddress;<br>方法or属性:postalCode?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:postalCode?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 48|权限有变化|类名:GeoAddress;<br>方法or属性:phoneNumber?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:phoneNumber?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 49|权限有变化|类名:GeoAddress;<br>方法or属性:addressUrl?: string;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:addressUrl?: string;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 50|权限有变化|类名:GeoAddress;<br>方法or属性:descriptions?: Array\<string>;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:descriptions?: Array\<string>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 51|权限有变化|类名:GeoAddress;<br>方法or属性:descriptionsSize?: number;<br>旧版本信息:|类名:GeoAddress;<br>方法or属性:descriptionsSize?: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 52|权限有变化|类名:Location;<br>方法or属性:latitude: number;<br>旧版本信息:|类名:Location;<br>方法or属性:latitude: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 53|权限有变化|类名:Location;<br>方法or属性:longitude: number;<br>旧版本信息:|类名:Location;<br>方法or属性:longitude: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 54|权限有变化|类名:Location;<br>方法or属性:altitude: number;<br>旧版本信息:|类名:Location;<br>方法or属性:altitude: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 55|权限有变化|类名:Location;<br>方法or属性:accuracy: number;<br>旧版本信息:|类名:Location;<br>方法or属性:accuracy: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 56|权限有变化|类名:Location;<br>方法or属性:speed: number;<br>旧版本信息:|类名:Location;<br>方法or属性:speed: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 57|权限有变化|类名:Location;<br>方法or属性:timeStamp: number;<br>旧版本信息:|类名:Location;<br>方法or属性:timeStamp: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 58|权限有变化|类名:Location;<br>方法or属性:direction: number;<br>旧版本信息:|类名:Location;<br>方法or属性:direction: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 59|权限有变化|类名:Location;<br>方法or属性:timeSinceBoot: number;<br>旧版本信息:|类名:Location;<br>方法or属性:timeSinceBoot: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 60|权限有变化|类名:Location;<br>方法or属性:additions?: Array\<string>;<br>旧版本信息:|类名:Location;<br>方法or属性:additions?: Array\<string>;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 61|权限有变化|类名:Location;<br>方法or属性:additionSize?: number;<br>旧版本信息:|类名:Location;<br>方法or属性:additionSize?: number;<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 62|权限有变化|类名:GeoLocationErrorCode;<br>方法or属性:INPUT_PARAMS_ERROR<br>旧版本信息:|类名:GeoLocationErrorCode;<br>方法or属性:INPUT_PARAMS_ERROR<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 63|权限有变化|类名:GeoLocationErrorCode;<br>方法or属性:REVERSE_GEOCODE_ERROR<br>旧版本信息:|类名:GeoLocationErrorCode;<br>方法or属性:REVERSE_GEOCODE_ERROR<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 64|权限有变化|类名:GeoLocationErrorCode;<br>方法or属性:GEOCODE_ERROR<br>旧版本信息:|类名:GeoLocationErrorCode;<br>方法or属性:GEOCODE_ERROR<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 65|权限有变化|类名:GeoLocationErrorCode;<br>方法or属性:LOCATOR_ERROR<br>旧版本信息:|类名:GeoLocationErrorCode;<br>方法or属性:LOCATOR_ERROR<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 66|权限有变化|类名:GeoLocationErrorCode;<br>方法or属性:LOCATION_SWITCH_ERROR<br>旧版本信息:|类名:GeoLocationErrorCode;<br>方法or属性:LOCATION_SWITCH_ERROR<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 67|权限有变化|类名:GeoLocationErrorCode;<br>方法or属性:LAST_KNOWN_LOCATION_ERROR<br>旧版本信息:|类名:GeoLocationErrorCode;<br>方法or属性:LAST_KNOWN_LOCATION_ERROR<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 68|权限有变化|类名:GeoLocationErrorCode;<br>方法or属性:LOCATION_REQUEST_TIMEOUT_ERROR<br>旧版本信息:|类名:GeoLocationErrorCode;<br>方法or属性:LOCATION_REQUEST_TIMEOUT_ERROR<br>新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts| 69