Move routing API endpoint addresses to config file
This commit is contained in:
parent
409e99c6fc
commit
e128e78408
5 changed files with 26 additions and 22 deletions
|
@ -51,7 +51,7 @@ function OSRMEngine() {
|
|||
}
|
||||
|
||||
return $.ajax({
|
||||
url: document.location.protocol + "//router.project-osrm.org/viaroute",
|
||||
url: document.location.protocol + OSM.OSRM_URL,
|
||||
data: params,
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue