Skip to content
Snippets Groups Projects
Commit 9478848c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

switched routing server

parent c89e4f60
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ public function routingOverviewGeoJson($vehicle, $points)
default:
$port = 5000;
}
$url = "http://144.76.61.182:$port/route/v1/$vehicle/$points?steps=true&geometries=geojson";
$url = "http://94.130.13.157:$port/route/v1/$vehicle/$points?steps=true&geometries=geojson";
$cacheHash = md5($url);
if (Cache::has($cacheHash)) {
......@@ -90,7 +90,7 @@ public function routingGeoJson($vehicle, $points, $bearingStartPoint = "")
default:
$port = 5000;
}
$url = "http://144.76.61.182:$port/route/v1/$vehicle/$points?steps=true&alternatives=true&geometries=geojson&overview=full&annotations=true";
$url = "http://94.130.13.157:$port/route/v1/$vehicle/$points?steps=true&alternatives=true&geometries=geojson&overview=full&annotations=true";
# Maybe we need to add Bearings:
if ($bearingStartPoint !== "") {
......@@ -150,7 +150,7 @@ public function match($vehicle, $points, $timestamp, $radiuses)
default:
$port = 5000;
}
$url = 'http://144.76.61.182:' . $port . '/match/v1/' . $vehicle . '/' . $points . '?steps=true&geometries=geojson&timestamps=' . $timestamp . '&radiuses=' . $radiuses;
$url = 'http://94.130.13.157:' . $port . '/match/v1/' . $vehicle . '/' . $points . '?steps=true&geometries=geojson&timestamps=' . $timestamp . '&radiuses=' . $radiuses;
// make request
$ch = curl_init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment