# JS API Changes of the Location Subsystem The table below lists the APIs changes of the location subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1. ## API Changes | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| | ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_NETWORK | Added| | ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_LOCATION | Added| | ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_SIM | Added| | ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_LOCALE = 1 | Added| | ohos.geolocation | CountryCode | type: CountryCodeType; | Added| | ohos.geolocation | CountryCode | country: string; | Added| | ohos.geolocation | GeoLocationErrorCode | QUERY_COUNTRY_CODE_ERROR | Added| | ohos.geolocation | GeoLocationErrorCode | NOT_SUPPORTED = 100 | Added| | ohos.geolocation | Location | isFromMock: Boolean; | Added| | ohos.geolocation | GeoAddress | isFromMock: Boolean; | Added| | ohos.geolocation | LocationMockConfig | locations: Array\; | Added| | ohos.geolocation | LocationMockConfig | timeInterval: number; | Added| | ohos.geolocation | ReverseGeocodingMockInfo | geoAddress: GeoAddress; | Added| | ohos.geolocation | ReverseGeocodingMockInfo | location: ReverseGeoCodeRequest; | Added| | ohos.geolocation | geolocation | setReverseGeocodingMockInfo(mockInfos: Array\, callback: AsyncCallback\) : void;
setReverseGeocodingMockInfo(mockInfos: Array\) : Promise\; | Added| | ohos.geolocation | geolocation | disableReverseGeocodingMock(callback: AsyncCallback\) : void;
disableReverseGeocodingMock() : Promise\; | Added| | ohos.geolocation | geolocation | enableReverseGeocodingMock(callback: AsyncCallback\) : void;
enableReverseGeocodingMock() : Promise\; | Added| | ohos.geolocation | geolocation | setMockedLocations(config: LocationMockConfig, callback: AsyncCallback\) : void;
setMockedLocations(config: LocationMockConfig) : Promise\; | Added| | ohos.geolocation | geolocation | disableLocationMock(scenario?: LocationRequestScenario, callback: AsyncCallback\) : void;
disableLocationMock(scenario?: LocationRequestScenario) : Promise\; | Added| | ohos.geolocation | geolocation | enableLocationMock(scenario?: LocationRequestScenario, callback: AsyncCallback\) : void;
enableLocationMock(scenario?: LocationRequestScenario) : Promise\; | Added| | ohos.geolocation | geolocation | getCountryCode(callback: AsyncCallback\) : void;
getCountryCode() : Promise\; | Added| | ohos.geolocation | geolocation | off(type: 'countryCodeChange', callback?: Callback\) : void; | Added| | ohos.geolocation | geolocation | on(type: 'countryCodeChange', callback: Callback\) : void; | Added|