1# JS API Changes of the Location Subsystem 2 3The table below lists the APIs changes of the location subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1. 4 5## API Changes 6 7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_NETWORK | Added| 10| ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_LOCATION | Added| 11| ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_SIM | Added| 12| ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_LOCALE = 1 | Added| 13| ohos.geolocation | CountryCode | type: CountryCodeType; | Added| 14| ohos.geolocation | CountryCode | country: string; | Added| 15| ohos.geolocation | GeoLocationErrorCode | QUERY_COUNTRY_CODE_ERROR | Added| 16| ohos.geolocation | GeoLocationErrorCode | NOT_SUPPORTED = 100 | Added| 17| ohos.geolocation | Location | isFromMock: Boolean; | Added| 18| ohos.geolocation | GeoAddress | isFromMock: Boolean; | Added| 19| ohos.geolocation | LocationMockConfig | locations: Array\<Location>; | Added| 20| ohos.geolocation | LocationMockConfig | timeInterval: number; | Added| 21| ohos.geolocation | ReverseGeocodingMockInfo | geoAddress: GeoAddress; | Added| 22| ohos.geolocation | ReverseGeocodingMockInfo | location: ReverseGeoCodeRequest; | Added| 23| ohos.geolocation | geolocation | setReverseGeocodingMockInfo(mockInfos: Array\<ReverseGeocodingMockInfo>, callback: AsyncCallback\<void>) : void;<br>setReverseGeocodingMockInfo(mockInfos: Array\<ReverseGeocodingMockInfo>) : Promise\<void>; | Added| 24| ohos.geolocation | geolocation | disableReverseGeocodingMock(callback: AsyncCallback\<void>) : void;<br>disableReverseGeocodingMock() : Promise\<void>; | Added| 25| ohos.geolocation | geolocation | enableReverseGeocodingMock(callback: AsyncCallback\<void>) : void;<br>enableReverseGeocodingMock() : Promise\<void>; | Added| 26| ohos.geolocation | geolocation | setMockedLocations(config: LocationMockConfig, callback: AsyncCallback\<void>) : void;<br>setMockedLocations(config: LocationMockConfig) : Promise\<void>; | Added| 27| ohos.geolocation | geolocation | disableLocationMock(scenario?: LocationRequestScenario, callback: AsyncCallback\<void>) : void;<br>disableLocationMock(scenario?: LocationRequestScenario) : Promise\<void>; | Added| 28| ohos.geolocation | geolocation | enableLocationMock(scenario?: LocationRequestScenario, callback: AsyncCallback\<void>) : void;<br>enableLocationMock(scenario?: LocationRequestScenario) : Promise\<void>; | Added| 29| ohos.geolocation | geolocation | getCountryCode(callback: AsyncCallback\<CountryCode>) : void;<br>getCountryCode() : Promise\<CountryCode>; | Added| 30| ohos.geolocation | geolocation | off(type: 'countryCodeChange', callback?: Callback\<CountryCode>) : void; | Added| 31| ohos.geolocation | geolocation | on(type: 'countryCodeChange', callback: Callback\<CountryCode>) : void; | Added| 32