diff --git a/DRAFT_CHANGELOG.md b/DRAFT_CHANGELOG.md index 7d990429..0da99272 100644 --- a/DRAFT_CHANGELOG.md +++ b/DRAFT_CHANGELOG.md @@ -1,12 +1,11 @@ -# Bibliothèque d'accès aux services Géoplateforme, version 3.4.6 +# Bibliothèque d'accès aux services Géoplateforme, version 3.4.7 -**19/12/2024 : 3.4.6** +**22/09/2026 : 3.4.7** > release of geoportal access library ## Summary -Build avec node JS > 20 ## Changelog @@ -14,12 +13,12 @@ Build avec node JS > 20 * [Changed] + - autocomplete : transmission du paramètre names pour les results de type POI (#94) + * [Removed] * [Fixed] - - version 2.6.1 node-fetch compatible webpack@4 - * [Deprecated] * [Security] diff --git a/geoportal-access-lib-3.4.7-pr-94.tgz b/geoportal-access-lib-3.4.7-pr-94.tgz new file mode 100644 index 00000000..7587bbe6 Binary files /dev/null and b/geoportal-access-lib-3.4.7-pr-94.tgz differ diff --git a/package.json b/package.json index 772d5fb7..7f3c1517 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "geoportal-access-lib", - "version": "3.4.6", - "date": "19/12/2024", + "version": "3.4.7-pr-94", + "date": "22/09/2026", "description": "French Geoportal resources access library", "module": "src/Gp.js", "main": "dist/GpServices-src.js", diff --git a/src/Services/AutoComplete/Response/AutoCompleteResponseFactory.js b/src/Services/AutoComplete/Response/AutoCompleteResponseFactory.js index ca9fdcdb..8f7a54f5 100644 --- a/src/Services/AutoComplete/Response/AutoCompleteResponseFactory.js +++ b/src/Services/AutoComplete/Response/AutoCompleteResponseFactory.js @@ -83,6 +83,7 @@ var AutoCompleteResponseFactory = { suggestedLocation.poi = result.street; suggestedLocation.type = "PositionOfInterest"; suggestedLocation.poiType = result.poiType; + suggestedLocation.names = Array.isArray(result.names) ? result.names : null; } if (suggestedLocation.position) { diff --git a/src/Services/AutoComplete/Response/model/SuggestedLocation.js b/src/Services/AutoComplete/Response/model/SuggestedLocation.js index a6e8fb2d..9db59a2a 100644 --- a/src/Services/AutoComplete/Response/model/SuggestedLocation.js +++ b/src/Services/AutoComplete/Response/model/SuggestedLocation.js @@ -108,6 +108,12 @@ function SuggestedLocation () { */ this.poi = null; + /** + * Alternative names for the suggested location ("PositionOfInterest" only). + * @type {Array} + */ + this.names = null; + /** * Nature of the suggested location : "prefecture", "monument", "commune", ... for instance ("PositionOfInterest" only). * @type {String}