@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | $route = new Route(); |
17 | 17 | |
18 | 18 | $grParams = array( |
19 | - 'offset' => 0, |
|
20 | - 'limit' => 10 |
|
19 | + 'offset' => 0, |
|
20 | + 'limit' => 10 |
|
21 | 21 | ); |
22 | 22 | |
23 | 23 | $routes = $route->getRoutes(null, $grParams); |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | echo "<br> From the route -> " . $route_id0 ."<br>"; |
33 | 33 | |
34 | 34 | if (is_null($route_id0)) { |
35 | - echo "Can't retrieve random route_id!.. Try again."; |
|
36 | - return; |
|
35 | + echo "Can't retrieve random route_id!.. Try again."; |
|
36 | + return; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | // Get random source destination from selected source route above |
@@ -48,14 +48,14 @@ discard block |
||
48 | 48 | $to_route_id = $route_id0; |
49 | 49 | |
50 | 50 | while ($to_route_id == $route_id0) { |
51 | - $to_route_id = $routes[rand(0, sizeof($routes)-1)]->route_id; |
|
51 | + $to_route_id = $routes[rand(0, sizeof($routes)-1)]->route_id; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | echo "<br> to the route -> " . $to_route_id ."<br>"; |
55 | 55 | |
56 | 56 | if (is_null($to_route_id)) { |
57 | - echo "Can't retrieve random route_id!.. Try again."; |
|
58 | - return; |
|
57 | + echo "Can't retrieve random route_id!.. Try again."; |
|
58 | + return; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | // Get random destination destination from selected source route above |
@@ -64,17 +64,17 @@ discard block |
||
64 | 64 | $after_destination_id = $addressRand2['route_destination_id']; |
65 | 65 | |
66 | 66 | if (is_null($after_destination_id)) { |
67 | - echo "can't retrieve random address!.. Try again."; |
|
68 | - return; |
|
67 | + echo "can't retrieve random address!.. Try again."; |
|
68 | + return; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | echo "after_destination_id = $after_destination_id <br>"; |
72 | 72 | |
73 | 73 | // Move the destination to the route |
74 | 74 | $routeparams = array( |
75 | - 'to_route_id' => $to_route_id, |
|
76 | - 'route_destination_id' => strval($route_destination_id), |
|
77 | - 'after_destination_id' => strval($after_destination_id) |
|
75 | + 'to_route_id' => $to_route_id, |
|
76 | + 'route_destination_id' => strval($route_destination_id), |
|
77 | + 'after_destination_id' => strval($after_destination_id) |
|
78 | 78 | ); |
79 | 79 | |
80 | 80 | $address = new Address(); |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
5 | -require $root . '/vendor/autoload.php'; |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | +require $root.'/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | use Route4Me\Route4Me; |
8 | 8 | use Route4Me\Route; |
@@ -27,9 +27,9 @@ discard block |
||
27 | 27 | // Get random source route from test routes |
28 | 28 | $route = new Route(); |
29 | 29 | |
30 | -$route_id0 = $routes[rand(0, sizeof($routes)-1)]->route_id; |
|
30 | +$route_id0 = $routes[rand(0, sizeof($routes) - 1)]->route_id; |
|
31 | 31 | |
32 | -echo "<br> From the route -> " . $route_id0 ."<br>"; |
|
32 | +echo "<br> From the route -> ".$route_id0."<br>"; |
|
33 | 33 | |
34 | 34 | if (is_null($route_id0)) { |
35 | 35 | echo "Can't retrieve random route_id!.. Try again."; |
@@ -37,8 +37,8 @@ discard block |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | // Get random source destination from selected source route above |
40 | -$addressRand=(array)$route->GetRandomAddressFromRoute($route_id0); |
|
41 | -$route_destination_id=$addressRand['route_destination_id']; |
|
40 | +$addressRand = (array)$route->GetRandomAddressFromRoute($route_id0); |
|
41 | +$route_destination_id = $addressRand['route_destination_id']; |
|
42 | 42 | |
43 | 43 | assert(!is_null($route_destination_id), "Can't retrieve random address."); |
44 | 44 | |
@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | // Get random destination route from test routes |
48 | 48 | $to_route_id = $route_id0; |
49 | 49 | |
50 | -while ($to_route_id == $route_id0) { |
|
51 | - $to_route_id = $routes[rand(0, sizeof($routes)-1)]->route_id; |
|
50 | +while ($to_route_id==$route_id0) { |
|
51 | + $to_route_id = $routes[rand(0, sizeof($routes) - 1)]->route_id; |
|
52 | 52 | } |
53 | 53 | |
54 | -echo "<br> to the route -> " . $to_route_id ."<br>"; |
|
54 | +echo "<br> to the route -> ".$to_route_id."<br>"; |
|
55 | 55 | |
56 | 56 | if (is_null($to_route_id)) { |
57 | 57 | echo "Can't retrieve random route_id!.. Try again."; |
@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | |
26 | 26 | if (isset($addressRand['is_depot'])) |
27 | 27 | { |
28 | - if ($addressRand['is_depot']) { |
|
29 | - echo "Random choosed address is depot, it can't be marked!.. Try again."; |
|
30 | - return; |
|
31 | - } |
|
28 | + if ($addressRand['is_depot']) { |
|
29 | + echo "Random choosed address is depot, it can't be marked!.. Try again."; |
|
30 | + return; |
|
31 | + } |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | // Get random address's id from selected route above |
@@ -39,12 +39,12 @@ discard block |
||
39 | 39 | |
40 | 40 | // Mark the address as detected as deoarted |
41 | 41 | $addressParameters = (array)Address::fromArray(array( |
42 | - "route_id" => $routeId, |
|
43 | - "route_destination_id" => $route_destination_id, |
|
42 | + "route_id" => $routeId, |
|
43 | + "route_destination_id" => $route_destination_id, |
|
44 | 44 | )); |
45 | 45 | |
46 | 46 | $body= array( |
47 | - "is_departed" => TRUE, |
|
47 | + "is_departed" => TRUE, |
|
48 | 48 | ); |
49 | 49 | |
50 | 50 | $address = new Address(); |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
5 | -require $root . '/vendor/autoload.php'; |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | +require $root.'/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | use Route4Me\Route4Me; |
8 | 8 | use Route4Me\Route; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | "route_destination_id" => $route_destination_id, |
44 | 44 | )); |
45 | 45 | |
46 | -$body= array( |
|
46 | +$body = array( |
|
47 | 47 | "is_departed" => TRUE, |
48 | 48 | ); |
49 | 49 |
@@ -23,10 +23,10 @@ discard block |
||
23 | 23 | $addressRand=(array)$route->GetRandomAddressFromRoute($routeId); |
24 | 24 | |
25 | 25 | if (isset($addressRand['is_depot'])) { |
26 | - if ($addressRand['is_depot']) { |
|
27 | - echo "Random choosed address is depot, it can't be marked!.. Try again."; |
|
28 | - return; |
|
29 | - } |
|
26 | + if ($addressRand['is_depot']) { |
|
27 | + echo "Random choosed address is depot, it can't be marked!.. Try again."; |
|
28 | + return; |
|
29 | + } |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | // Get random address's id from selected route above |
@@ -39,10 +39,10 @@ discard block |
||
39 | 39 | $address = new Address(); |
40 | 40 | |
41 | 41 | $params = array( |
42 | - "route_id" => $routeId, |
|
43 | - "address_id" => $route_destination_id, |
|
44 | - "is_visited" => 1, |
|
45 | - "member_id" => 1 |
|
42 | + "route_id" => $routeId, |
|
43 | + "address_id" => $route_destination_id, |
|
44 | + "is_visited" => 1, |
|
45 | + "member_id" => 1 |
|
46 | 46 | ); |
47 | 47 | |
48 | 48 | $result = $address->markAsVisited($params); |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
5 | -require $root . '/vendor/autoload.php'; |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | +require $root.'/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | use Route4Me\Route4Me; |
8 | 8 | use Route4Me\Address; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | assert(!is_null($routeId), "can't retrieve random route_id"); |
21 | 21 | |
22 | 22 | // Get random address's id from selected route above |
23 | -$addressRand=(array)$route->GetRandomAddressFromRoute($routeId); |
|
23 | +$addressRand = (array)$route->GetRandomAddressFromRoute($routeId); |
|
24 | 24 | |
25 | 25 | if (isset($addressRand['is_depot'])) { |
26 | 26 | if ($addressRand['is_depot']) { |
@@ -49,4 +49,4 @@ discard block |
||
49 | 49 | |
50 | 50 | assert($result==1, "Cannot marked the address as visited"); |
51 | 51 | |
52 | -echo "<br> The address " . $route_destination_id . " was marked as visited"; |
|
52 | +echo "<br> The address ".$route_destination_id." was marked as visited"; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | // Get route tracking |
22 | 22 | $routeId = $route_id; |
23 | 23 | $route = Route::getRoutes($routeId, array( |
24 | - 'device_tracking_history' => true |
|
24 | + 'device_tracking_history' => true |
|
25 | 25 | )); |
26 | 26 | |
27 | 27 | var_dump($route->tracking_history); |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root=realpath(dirname(__FILE__).'/../'); |
|
4 | +$root = realpath(dirname(__FILE__).'/../'); |
|
5 | 5 | require $root.'/vendor/autoload.php'; |
6 | 6 | |
7 | 7 | use Route4Me\Route4Me; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | $route = new Route(); |
16 | 16 | |
17 | 17 | // Get a random route ID |
18 | -$route_id=$route->getRandomRouteId(0, 10); |
|
18 | +$route_id = $route->getRandomRouteId(0, 10); |
|
19 | 19 | assert(!is_null($route_id), "Can't retrieve a random route ID"); |
20 | 20 | |
21 | 21 | // Get route tracking |
@@ -27,16 +27,16 @@ discard block |
||
27 | 27 | // Set GPS postion to the selected route |
28 | 28 | // Set right member_id corresponding to the API key |
29 | 29 | $params = TrackSetParams::fromArray(array( |
30 | - 'format' => Format::SERIALIZED, |
|
31 | - 'route_id' => $routeId, |
|
32 | - 'member_id' => 1, |
|
33 | - 'course' => 1, |
|
34 | - 'speed' => 120, |
|
35 | - 'lat' => 41.8927521, |
|
36 | - 'lng' => -109.0803888, |
|
37 | - 'device_type' => 'android_phone', |
|
38 | - 'device_guid' => 'qweqweqwe', |
|
39 | - 'device_timestamp' => date('Y-m-d H:i:s', strtotime('-2 day')) |
|
30 | + 'format' => Format::SERIALIZED, |
|
31 | + 'route_id' => $routeId, |
|
32 | + 'member_id' => 1, |
|
33 | + 'course' => 1, |
|
34 | + 'speed' => 120, |
|
35 | + 'lat' => 41.8927521, |
|
36 | + 'lng' => -109.0803888, |
|
37 | + 'device_type' => 'android_phone', |
|
38 | + 'device_guid' => 'qweqweqwe', |
|
39 | + 'device_timestamp' => date('Y-m-d H:i:s', strtotime('-2 day')) |
|
40 | 40 | )); |
41 | 41 | |
42 | 42 | $status = Track::set($params); |
@@ -50,20 +50,20 @@ discard block |
||
50 | 50 | $endDate = time() + 1*24*3600; |
51 | 51 | |
52 | 52 | $params = array( |
53 | - 'route_id' => $routeId, |
|
54 | - 'format' => Format::JSON, |
|
55 | - 'time_period' => 'custom', |
|
56 | - 'start_date' => $startDate, |
|
57 | - 'end_date' => $endDate |
|
53 | + 'route_id' => $routeId, |
|
54 | + 'format' => Format::JSON, |
|
55 | + 'time_period' => 'custom', |
|
56 | + 'start_date' => $startDate, |
|
57 | + 'end_date' => $endDate |
|
58 | 58 | ); |
59 | 59 | |
60 | 60 | $result = $route->GetTrackingHistoryFromTimeRange($params); |
61 | 61 | |
62 | 62 | foreach ($result as $key => $value) |
63 | 63 | { |
64 | - if (is_array($value)) { |
|
65 | - Route4Me::simplePrint($value); |
|
66 | - } else { |
|
67 | - echo "$key => $value <br>"; |
|
68 | - } |
|
64 | + if (is_array($value)) { |
|
65 | + Route4Me::simplePrint($value); |
|
66 | + } else { |
|
67 | + echo "$key => $value <br>"; |
|
68 | + } |
|
69 | 69 | } |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | 5 | require $root.'/vendor/autoload.php'; |
6 | 6 | |
7 | 7 | use Route4Me\Enum\DeviceType; |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | assert($status['status'], "Can't send GPS position to the selected route"); |
47 | 47 | |
48 | 48 | // Get the device tracking history from a time range |
49 | -$startDate = time() - 30*24*3600; |
|
50 | -$endDate = time() + 1*24*3600; |
|
49 | +$startDate = time() - 30 * 24 * 3600; |
|
50 | +$endDate = time() + 1 * 24 * 3600; |
|
51 | 51 | |
52 | 52 | $params = array( |
53 | 53 | 'route_id' => $routeId, |
@@ -26,16 +26,16 @@ |
||
26 | 26 | // Set GPS postion to the selected route |
27 | 27 | // Set right member_id corresponding to the API key |
28 | 28 | $params = TrackSetParams::fromArray(array( |
29 | - 'format' => Format::CSV, |
|
30 | - 'route_id' => $routeId, |
|
31 | - 'member_id' => 1, |
|
32 | - 'course' => 1, |
|
33 | - 'speed' => 120, |
|
34 | - 'lat' => 41.8927521, |
|
35 | - 'lng' => -109.0803888, |
|
36 | - 'device_type' => 'android_phone', |
|
37 | - 'device_guid' => 'qweqweqwe', |
|
38 | - 'device_timestamp' => date('Y-m-d H:i:s', strtotime('-1 day')) |
|
29 | + 'format' => Format::CSV, |
|
30 | + 'route_id' => $routeId, |
|
31 | + 'member_id' => 1, |
|
32 | + 'course' => 1, |
|
33 | + 'speed' => 120, |
|
34 | + 'lat' => 41.8927521, |
|
35 | + 'lng' => -109.0803888, |
|
36 | + 'device_type' => 'android_phone', |
|
37 | + 'device_guid' => 'qweqweqwe', |
|
38 | + 'device_timestamp' => date('Y-m-d H:i:s', strtotime('-1 day')) |
|
39 | 39 | )); |
40 | 40 | |
41 | 41 | $status = Track::set($params); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | 5 | require $root.'/vendor/autoload.php'; |
6 | 6 | |
7 | 7 | use Route4Me\Enum\DeviceType; |
@@ -27,16 +27,16 @@ discard block |
||
27 | 27 | // Set GPS postion to the selected route |
28 | 28 | // Set right member_id corresponding to the API key |
29 | 29 | $params = TrackSetParams::fromArray(array( |
30 | - 'format' => Format::SERIALIZED, |
|
31 | - 'route_id' => $routeId, |
|
32 | - 'member_id' => 105323, |
|
33 | - 'course' => 3, |
|
34 | - 'speed' => 100, |
|
35 | - 'lat' => 41.8927521, |
|
36 | - 'lng' => -109.0803888, |
|
37 | - 'device_type' => DeviceType::IPHONE, |
|
38 | - 'device_guid' => 'qweqweqwe', |
|
39 | - 'device_timestamp' => date('Y-m-d H:i:s') |
|
30 | + 'format' => Format::SERIALIZED, |
|
31 | + 'route_id' => $routeId, |
|
32 | + 'member_id' => 105323, |
|
33 | + 'course' => 3, |
|
34 | + 'speed' => 100, |
|
35 | + 'lat' => 41.8927521, |
|
36 | + 'lng' => -109.0803888, |
|
37 | + 'device_type' => DeviceType::IPHONE, |
|
38 | + 'device_guid' => 'qweqweqwe', |
|
39 | + 'device_timestamp' => date('Y-m-d H:i:s') |
|
40 | 40 | )); |
41 | 41 | |
42 | 42 | $status = Track::set($params); |
@@ -46,23 +46,23 @@ discard block |
||
46 | 46 | assert($status['status'], "Can't send GPS position to the selected route"); |
47 | 47 | |
48 | 48 | if (!$status) { |
49 | - echo "Setting of GPS position failed"; |
|
50 | - return; |
|
49 | + echo "Setting of GPS position failed"; |
|
50 | + return; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | $params = array( |
54 | - 'route_id' => $routeId, |
|
55 | - 'device_tracking_history' => '1' |
|
54 | + 'route_id' => $routeId, |
|
55 | + 'device_tracking_history' => '1' |
|
56 | 56 | ); |
57 | 57 | |
58 | 58 | $result = $route->GetLastLocation($params); |
59 | 59 | |
60 | 60 | if (isset($result->tracking_history)) |
61 | 61 | foreach ($result->tracking_history as $history) { |
62 | - echo "Speed --> ".$history['s']."<br>"; |
|
63 | - echo "course --> ".$history['d']."<br>"; |
|
64 | - echo "Timestamp --> ".$history['ts_friendly']."<br>"; |
|
65 | - echo "Latitude --> ".$history['lt']."<br>"; |
|
66 | - echo "Longitude --> ".$history['lg']."<br>"; |
|
67 | - echo "========================================<br><br>"; |
|
62 | + echo "Speed --> ".$history['s']."<br>"; |
|
63 | + echo "course --> ".$history['d']."<br>"; |
|
64 | + echo "Timestamp --> ".$history['ts_friendly']."<br>"; |
|
65 | + echo "Latitude --> ".$history['lt']."<br>"; |
|
66 | + echo "Longitude --> ".$history['lg']."<br>"; |
|
67 | + echo "========================================<br><br>"; |
|
68 | 68 | } |
@@ -57,9 +57,10 @@ |
||
57 | 57 | |
58 | 58 | $result = $route->GetLastLocation($params); |
59 | 59 | |
60 | -if (isset($result->tracking_history)) |
|
61 | -foreach ($result->tracking_history as $history) { |
|
60 | +if (isset($result->tracking_history)) { |
|
61 | + foreach ($result->tracking_history as $history) { |
|
62 | 62 | echo "Speed --> ".$history['s']."<br>"; |
63 | +} |
|
63 | 64 | echo "course --> ".$history['d']."<br>"; |
64 | 65 | echo "Timestamp --> ".$history['ts_friendly']."<br>"; |
65 | 66 | echo "Latitude --> ".$history['lt']."<br>"; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | 5 | require $root.'/vendor/autoload.php'; |
6 | 6 | |
7 | 7 | use Route4Me\Enum\DeviceType; |
@@ -30,15 +30,15 @@ discard block |
||
30 | 30 | |
31 | 31 | foreach ($addresses as $addr1) { |
32 | 32 | if (!is_null($addr1->tracking_number)) { |
33 | - $trackingNumber = $addr1->tracking_number; |
|
34 | - break; |
|
33 | + $trackingNumber = $addr1->tracking_number; |
|
34 | + break; |
|
35 | 35 | } |
36 | 36 | } |
37 | 37 | |
38 | 38 | assert(!is_null($trackingNumber), "Can't select a tracking number"); |
39 | 39 | |
40 | 40 | $params = array( |
41 | - 'tracking' => $trackingNumber |
|
41 | + 'tracking' => $trackingNumber |
|
42 | 42 | ); |
43 | 43 | |
44 | 44 | $route = new Route(); |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | |
48 | 48 | foreach ($result as $key => $value) |
49 | 49 | { |
50 | - if (is_array($value)) { |
|
51 | - Route4Me::simplePrint($value, true); |
|
52 | - } else { |
|
53 | - echo "$key => $value <br>"; |
|
54 | - } |
|
50 | + if (is_array($value)) { |
|
51 | + Route4Me::simplePrint($value, true); |
|
52 | + } else { |
|
53 | + echo "$key => $value <br>"; |
|
54 | + } |
|
55 | 55 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | 5 | require $root.'/vendor/autoload.php'; |
6 | 6 | |
7 | 7 | use Route4Me\Enum\DeviceType; |
@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | Route4Me::setApiKey('11111111111111111111111111111111'); |
12 | 12 | |
13 | 13 | $routeParameters = array( |
14 | - 'limit' => 5, |
|
15 | - 'offset' => 0 |
|
14 | + 'limit' => 5, |
|
15 | + 'offset' => 0 |
|
16 | 16 | ); |
17 | 17 | |
18 | 18 | $optimizationProblem = new OptimizationProblem(); |
@@ -20,5 +20,5 @@ discard block |
||
20 | 20 | $optimizations = $optimizationProblem->get($routeParameters); |
21 | 21 | |
22 | 22 | foreach ($optimizations as $optimization) { |
23 | - echo "Optimization problem ID -> " . $optimization->optimization_problem_id . "<br>"; |
|
23 | + echo "Optimization problem ID -> " . $optimization->optimization_problem_id . "<br>"; |
|
24 | 24 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
5 | -require $root . '/vendor/autoload.php'; |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | +require $root.'/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | use Route4Me\Route4Me; |
8 | 8 | use Route4me\Route; |
@@ -20,5 +20,5 @@ discard block |
||
20 | 20 | $optimizations = $optimizationProblem->get($routeParameters); |
21 | 21 | |
22 | 22 | foreach ($optimizations as $optimization) { |
23 | - echo "Optimization problem ID -> " . $optimization->optimization_problem_id . "<br>"; |
|
23 | + echo "Optimization problem ID -> ".$optimization->optimization_problem_id."<br>"; |
|
24 | 24 | } |