Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# 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

* [Added]

* [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]
Expand Down
Binary file added geoportal-access-lib-3.4.7-pr-94.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 6 additions & 0 deletions src/Services/AutoComplete/Response/model/SuggestedLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ function SuggestedLocation () {
*/
this.poi = null;

/**
* Alternative names for the suggested location ("PositionOfInterest" only).
* @type {Array<String>}
*/
this.names = null;

/**
* Nature of the suggested location : "prefecture", "monument", "commune", ... for instance ("PositionOfInterest" only).
* @type {String}
Expand Down
Loading