| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:geoLocationManager;
方法or属性:function on(type: 'locatingRequiredDataChange', config: LocatingRequiredDataConfig, callback: Callback\>): void;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:geoLocationManager;
方法or属性:function off(type: 'locatingRequiredDataChange', callback?: Callback\>): void;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:geoLocationManager;
方法or属性:function getLocatingRequiredData(config: LocatingRequiredDataConfig): Promise\>;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataConfig;
方法or属性:type: LocatingRequiredDataType;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataConfig;
方法or属性:needStartScan: boolean;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataConfig;
方法or属性:scanInterval?: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataConfig;
方法or属性:scanTimeout?: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredData;
方法or属性:wifiData?: WifiScanInfo;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredData;
方法or属性:bluetoothData?: BluetoothScanInfo;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;
方法or属性:ssid: string;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;
方法or属性:bssid: string;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;
方法or属性:rssi: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:BluetoothScanInfo;
方法or属性:rssi: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;
方法or属性:frequency: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:WifiScanInfo;
方法or属性:timestamp: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:BluetoothScanInfo;
方法or属性:timestamp: number;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:BluetoothScanInfo;
方法or属性:deviceName: string;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:BluetoothScanInfo;
方法or属性:macAddress: string;|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataType;
方法or属性:WIFI = 1|@ohos.geoLocationManager.d.ts|
|新增|NA|类名:LocatingRequiredDataType;
方法or属性:BLUETOOTH|@ohos.geoLocationManager.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function getCurrentLocation(callback: AsyncCallback\): void;
旧版本信息:|类名:geolocation;
方法or属性:function getCurrentLocation(callback: AsyncCallback\): void;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function getCurrentLocation(request?: CurrentLocationRequest): Promise\;
旧版本信息:|类名:geolocation;
方法or属性:function getCurrentLocation(request?: CurrentLocationRequest): Promise\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function getLastLocation(): Promise\;
旧版本信息:|类名:geolocation;
方法or属性:function getLastLocation(): Promise\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function isLocationEnabled(): Promise\;
旧版本信息:|类名:geolocation;
方法or属性:function isLocationEnabled(): Promise\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function requestEnableLocation(): Promise\;
旧版本信息:|类名:geolocation;
方法or属性:function requestEnableLocation(): Promise\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise\>;
旧版本信息:|类名:geolocation;
方法or属性:function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise\>;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function getAddressesFromLocationName(request: GeoCodeRequest): Promise\>;
旧版本信息:|类名:geolocation;
方法or属性:function getAddressesFromLocationName(request: GeoCodeRequest): Promise\>;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function isGeoServiceAvailable(): Promise\;
旧版本信息:|类名:geolocation;
方法or属性:function isGeoServiceAvailable(): Promise\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function getCachedGnssLocationsSize(): Promise\;
旧版本信息:|类名:geolocation;
方法or属性:function getCachedGnssLocationsSize(): Promise\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function flushCachedGnssLocations(): Promise\;
旧版本信息:|类名:geolocation;
方法or属性:function flushCachedGnssLocations(): Promise\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:geolocation;
方法or属性:function sendCommand(command: LocationCommand): Promise\;
旧版本信息:|类名:geolocation;
方法or属性:function sendCommand(command: LocationCommand): Promise\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:latitude?: number;
旧版本信息:|类名:GeoAddress;
方法or属性:latitude?: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:longitude?: number;
旧版本信息:|类名:GeoAddress;
方法or属性:longitude?: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:locale?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:locale?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:placeName?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:placeName?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:countryCode?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:countryCode?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:countryName?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:countryName?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:administrativeArea?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:administrativeArea?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:subAdministrativeArea?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:subAdministrativeArea?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:locality?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:locality?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:subLocality?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:subLocality?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:roadName?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:roadName?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:subRoadName?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:subRoadName?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:premises?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:premises?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:postalCode?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:postalCode?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:phoneNumber?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:phoneNumber?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:addressUrl?: string;
旧版本信息:|类名:GeoAddress;
方法or属性:addressUrl?: string;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:descriptions?: Array\;
旧版本信息:|类名:GeoAddress;
方法or属性:descriptions?: Array\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoAddress;
方法or属性:descriptionsSize?: number;
旧版本信息:|类名:GeoAddress;
方法or属性:descriptionsSize?: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:latitude: number;
旧版本信息:|类名:Location;
方法or属性:latitude: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:longitude: number;
旧版本信息:|类名:Location;
方法or属性:longitude: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:altitude: number;
旧版本信息:|类名:Location;
方法or属性:altitude: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:accuracy: number;
旧版本信息:|类名:Location;
方法or属性:accuracy: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:speed: number;
旧版本信息:|类名:Location;
方法or属性:speed: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:timeStamp: number;
旧版本信息:|类名:Location;
方法or属性:timeStamp: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:direction: number;
旧版本信息:|类名:Location;
方法or属性:direction: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:timeSinceBoot: number;
旧版本信息:|类名:Location;
方法or属性:timeSinceBoot: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:additions?: Array\;
旧版本信息:|类名:Location;
方法or属性:additions?: Array\;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:Location;
方法or属性:additionSize?: number;
旧版本信息:|类名:Location;
方法or属性:additionSize?: number;
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoLocationErrorCode;
方法or属性:INPUT_PARAMS_ERROR
旧版本信息:|类名:GeoLocationErrorCode;
方法or属性:INPUT_PARAMS_ERROR
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoLocationErrorCode;
方法or属性:REVERSE_GEOCODE_ERROR
旧版本信息:|类名:GeoLocationErrorCode;
方法or属性:REVERSE_GEOCODE_ERROR
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoLocationErrorCode;
方法or属性:GEOCODE_ERROR
旧版本信息:|类名:GeoLocationErrorCode;
方法or属性:GEOCODE_ERROR
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoLocationErrorCode;
方法or属性:LOCATOR_ERROR
旧版本信息:|类名:GeoLocationErrorCode;
方法or属性:LOCATOR_ERROR
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoLocationErrorCode;
方法or属性:LOCATION_SWITCH_ERROR
旧版本信息:|类名:GeoLocationErrorCode;
方法or属性:LOCATION_SWITCH_ERROR
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoLocationErrorCode;
方法or属性:LAST_KNOWN_LOCATION_ERROR
旧版本信息:|类名:GeoLocationErrorCode;
方法or属性:LAST_KNOWN_LOCATION_ERROR
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|
|权限有变化|类名:GeoLocationErrorCode;
方法or属性:LOCATION_REQUEST_TIMEOUT_ERROR
旧版本信息:|类名:GeoLocationErrorCode;
方法or属性:LOCATION_REQUEST_TIMEOUT_ERROR
新版本信息:ohos.permission.LOCATION|@ohos.geolocation.d.ts|