Skip to content

Commit

Permalink
feat(Services): branchement aux services iti/iso de la GPF
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Feb 2, 2024
1 parent 0c7ca33 commit 7cd2f77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 2 additions & 0 deletions src/Services/DefaultUrlService.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ var DefaultUrlService = {
* @returns {String} url
*/
newUrl : function () {
return DefaultUrlService.newUrl(this.new_key);
}
},
/**
Expand Down Expand Up @@ -199,6 +200,7 @@ var DefaultUrlService = {
* @returns {String} url
*/
newUrl : function () {
return DefaultUrlService.newUrl(this.new_key);
}
}
};
Expand Down
8 changes: 1 addition & 7 deletions src/Services/ProcessIsoCurve/ProcessIsoCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,7 @@ function ProcessIsoCurve (options) {
// gestion de l'url du service par defaut
// si l'url n'est pas renseignée, il faut utiliser les urls par defaut
if (!this.options.serverUrl) {
// Code commenté : Release beta services DIFFUSION uniquement : on tape sur l'anvcien service d'isochrone
/* var urlFound = DefaultUrlService.ProcessIsoCurve.newUrl();
if (this.options.oldIsoService) {
urlFound = DefaultUrlService.ProcessIsoCurve.url();
} */
// Release beta services DIFFUSION uniquement : on tape sur l'anvcien service d'isochrone
var urlFound = DefaultUrlService.ProcessIsoCurve.url();
var urlFound = DefaultUrlService.ProcessIsoCurve.newUrl();
if (!urlFound) {
throw new Error("Url by default not found !");
}
Expand Down
8 changes: 1 addition & 7 deletions src/Services/Route/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,7 @@ function Route (options) {
// gestion de l'url du service par defaut
// si l'url n'est pas renseignée, il faut utiliser les urls par defaut
if (!this.options.serverUrl) {
// Code commenté : Release beta services DIFFUSION uniquement : on tape sur l'anvcien service d'itinéraire
/* var UrlByDefault = DefaultUrlService.Route.newUrl();
if (this.options.oldRouteService) {
UrlByDefault = DefaultUrlService.Route.url();
} */
// Release beta services DIFFUSION uniquement : on tape sur l'anvcien service d'itinéraire
var UrlByDefault = DefaultUrlService.Route.url();
var UrlByDefault = DefaultUrlService.Route.newUrl();

if (!UrlByDefault) {
throw new Error("Url by default not found !");
Expand Down

0 comments on commit 7cd2f77

Please sign in to comment.