Skip to content

Commit

Permalink
release 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Jan 17, 2023
2 parents 64c4e20 + 42d0c51 commit 2a65584
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Bibliothèque d'accès aux services Géoportail, version 3.2.0
# Bibliothèque d'accès aux services Géoportail, version 3.2.1

**04/10/2022 : 3.2.0**
**17/01/2023 : 3.2.1**

> release of geoportal access library
## Summary

Mise à jour vers le service de Geocodage V2
Mise à jour pour fix sur geocodage

## Changelog

* [Added]

* [Changed]

- utilisation du service de geocodage v2 (#71)
- le paramètre searchGeom est rendu facultatif (#81)

* [Removed]

Expand Down
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.2.0",
"date": "04/10/2022",
"version": "3.2.1",
"date": "17/01/2022",
"description": "French Geoportal resources access library",
"module": "src/Gp.js",
"main": "dist/GpServices-src.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Geocode/Request/model/GeocodeParamREST.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ GeocodeParamREST.prototype.getParams = function () {
});
}

if (this.geocodeMethod === "reverse") {
if (this.geocodeMethod === "reverse" && this.searchGeometry) {
map.push({
k : "searchgeom",
v : this.getSearchGeometry()
Expand Down
9 changes: 5 additions & 4 deletions src/Services/Geocode/ReverseGeocode.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@ function ReverseGeocode (options_) {
CommonService.apply(this, [options]);

if (!options.searchGeometry) {
throw new Error(_.getMessage("PARAM_MISSING", "searchGeometry"));
if (!options.position) {
throw new Error(_.getMessage("PARAM_MISSING", "searchGeometry"));
}
} else {
this.options.searchGeometry = options.searchGeometry;
}

// ajout des options spécifiques au service
this.options.searchGeometry = options.searchGeometry;

// on definit l'index par defaut
if (!options.index) {
this.options.index = options.index = "StreetAddress";
Expand Down

0 comments on commit 2a65584

Please sign in to comment.