@panoramax/web-viewer 4.0.1-develop-6b70d6bf → 4.0.1-develop-b9f8a613

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "4.0.1-develop-6b70d6bf",
3
+ "version": "4.0.1-develop-b9f8a613",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -0,0 +1 @@
1
+ {}
@@ -41,11 +41,11 @@ export function InternetFastTestFile() {
41
41
  */
42
42
 
43
43
  /**
44
- * Get the Adresse Data Gouv FR base URL for geocoding API.
45
- * @returns {string} The Adresse Data Gouv URL (must support /search calls).
44
+ * Get the Base Adresse Nationale URL for geocoding API.
45
+ * @returns {string} The Base Adresse Nationale URL (must support /search calls).
46
46
  */
47
47
  export function AdresseDataGouvBaseURL() {
48
- return "https://api-adresse.data.gouv.fr";
48
+ return "https://data.geopf.fr/geocodage";
49
49
  }
50
50
 
51
51
  /**
@@ -30,7 +30,7 @@ describe("forwardGeocodingBAN", () => {
30
30
  const cfg = { query: "bla", limit: 5, proximity: "17.7,-45.2" };
31
31
 
32
32
  return geocoder.forwardGeocodingBAN(cfg).then(res => {
33
- expect(global.fetch.mock.calls).toEqual([["https://api-adresse.data.gouv.fr/search/?q=bla&limit=5&lat=17.7&lon=-45.2"]]);
33
+ expect(global.fetch.mock.calls).toEqual([["https://data.geopf.fr/geocodage/search/?q=bla&limit=5&lat=17.7&lon=-45.2"]]);
34
34
  expect(res).toMatchSnapshot();
35
35
  });
36
36
  });