-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,384 additions
and
2,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# Bibliothèque d'accès aux services Géoportail, version 3.1.0 | ||
# Bibliothèque d'accès aux services Géoportail, version 3.2.0 | ||
|
||
**23/03/2022 : 3.1.0** | ||
**04/10/2022 : 3.2.0** | ||
|
||
> release of geoportal access library | ||
## Summary | ||
|
||
Mise à jour vers le service de Geocodage V2 | ||
|
||
## Changelog | ||
|
||
* [Added] | ||
|
||
* [Changed] | ||
|
||
- utilisation du service d'isochrone v2 (#70) | ||
- utilisation du service de geocodage v2 (#71) | ||
|
||
* [Removed] | ||
|
||
* [Fixed] | ||
|
||
- fix coquille chemin vers GpServices dans le tutorial getconfig local | ||
|
||
* [Deprecated] | ||
|
||
* [Security] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 154 additions & 0 deletions
154
samples-src/pages/Geocode/pages-geocode-bundle-custom-option.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
{{#extend "layout-sample-bundle"}} | ||
|
||
{{#content "head"}} | ||
<title>Service de geocodage</title> | ||
{{/content}} | ||
|
||
{{#content "style"}} | ||
<style> | ||
#optionUser { | ||
width: 400px; | ||
height: 500px; | ||
float: left; | ||
} | ||
#optionOldGeocode { | ||
width: 400px; | ||
height: 500px; | ||
float: left; | ||
} | ||
#optionNewGeocode { | ||
width: 400px; | ||
height: 500px; | ||
float: left; | ||
} | ||
#optionObject { | ||
width: 390px; | ||
overflow: auto; | ||
height: 383px; | ||
} | ||
#oldCode { | ||
overflow: scroll; | ||
height: 406px; | ||
} | ||
#newCode { | ||
overflow: scroll; | ||
height: 406px; | ||
} | ||
#resultDiv { | ||
float: left; | ||
width: 100%; | ||
} | ||
textarea { | ||
resize: none; | ||
} | ||
</style> | ||
{{/content}} | ||
|
||
{{#content "body"}} | ||
<h1>Paramétrage du Service de geocodage</h1> | ||
|
||
<h4>Indexes et filtres:</h4> | ||
<pre> | ||
- CadastralParcel | ||
* identifiant | ||
* codeDepartement | ||
* codeCommune | ||
* nomCommune | ||
* codeCommuneAbs | ||
* codeArrondissement | ||
* section | ||
* numero | ||
* feuille | ||
- PositionOfInterest | ||
* type | ||
* postalCode | ||
* inseeCode | ||
- StreetAddress | ||
* city | ||
* postalCode | ||
* inseeCode | ||
</pre> | ||
<div id="optionUser"> | ||
<h3>Ecrire ici l'objet de paramétrage du service:</h3> | ||
<p>var option =</p> | ||
</br> | ||
<textarea id="optionObject"> | ||
{ | ||
"index" : "CadastralParcel", | ||
"filters": { | ||
"departmentcode": 75 | ||
}, | ||
"returnTrueGeometry": "true", | ||
"query": "75102000AO0020" | ||
}</textarea> | ||
</div> | ||
|
||
<div id="optionOldGeocode"> | ||
<h3>Exemple de paramètrage de l'ancien service:</h3> | ||
<p>var option =</p> | ||
<div id="oldCode"> | ||
<pre> | ||
<code>{ | ||
"apiKey" : "jhyvi0fgmnuxvfv0zjzorvdn", | ||
"filterOptions" : { | ||
"type" : ["PositionOfInterest"], | ||
"postalCode" : "41290" | ||
}, | ||
"position": { | ||
"x" : 1.3, | ||
"y" : 47.8 | ||
}, | ||
"location" : "Saint-Mandé", | ||
"maximumResponses" : 1 | ||
} | ||
</code> | ||
</pre> | ||
</div> | ||
</div> | ||
<div id="optionNewGeocode"> | ||
<h3>Exemple de paramètrage du nouveau service:</h3> | ||
<p>var option =</p> | ||
<div id="oldCode"> | ||
<pre> | ||
<code>{ | ||
"index" : "StreetAddress", | ||
"maximumResponses": 1, | ||
"returnTrueGeometry": "true", | ||
"filters": { | ||
"postcode": 94160, | ||
"citycode": 94 | ||
}, | ||
"query" : "73 avenue de paris, 94160 Saint-Mandé" | ||
} | ||
</code> | ||
</pre> | ||
</div> | ||
</div> | ||
|
||
<div id="resultDiv"> | ||
</br> | ||
<button type="button" id="geocodeButton">GO!</button> | ||
</br> | ||
</br> | ||
<h3>Resultat retourné par Gp.Services.geocode(options):</h3> | ||
</div> | ||
{{/content}} | ||
|
||
{{#content "js"}} | ||
var geocodeAction = function () { | ||
var optionText = document.getElementById("optionObject").value; | ||
var optionObject = JSON.parse(optionText); | ||
|
||
optionObject.onSuccess = function (response) { | ||
print(response.locations); | ||
}; | ||
optionObject.onFailure = function (error) { | ||
print(error); | ||
}; | ||
|
||
Gp.Services.geocode(optionObject); | ||
}; | ||
|
||
document.getElementById("geocodeButton").onclick = geocodeAction; | ||
{{/content}} | ||
{{/extend}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.