@@ -23,25 +23,25 @@ |
||
| 23 | 23 | |
| 24 | 24 | // Get a route with the path points |
| 25 | 25 | $params = array( |
| 26 | - "route_path_output" => "Points", |
|
| 27 | - "route_id" => $route_id |
|
| 26 | + "route_path_output" => "Points", |
|
| 27 | + "route_id" => $route_id |
|
| 28 | 28 | ); |
| 29 | 29 | |
| 30 | 30 | $routeResults = (array)$route->getRoutePoints($params); |
| 31 | 31 | |
| 32 | 32 | if (isset($routeResults['addresses'])) { |
| 33 | - foreach ($routeResults['addresses'] as $key => $address) { |
|
| 34 | - $araddress = (array)$address; |
|
| 33 | + foreach ($routeResults['addresses'] as $key => $address) { |
|
| 34 | + $araddress = (array)$address; |
|
| 35 | 35 | |
| 36 | - if (isset($araddress['route_destination_id'])) { |
|
| 37 | - echo "route_destination_id=".$araddress['route_destination_id']."<br>"; |
|
| 38 | - } |
|
| 36 | + if (isset($araddress['route_destination_id'])) { |
|
| 37 | + echo "route_destination_id=".$araddress['route_destination_id']."<br>"; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - if (isset($araddress['path_to_next'])) { |
|
| 41 | - echo "path_to_next:<br>"; |
|
| 42 | - Route4Me::simplePrint($araddress['path_to_next']); |
|
| 43 | - } |
|
| 40 | + if (isset($araddress['path_to_next'])) { |
|
| 41 | + echo "path_to_next:<br>"; |
|
| 42 | + Route4Me::simplePrint($araddress['path_to_next']); |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | - echo "<br>"; |
|
| 46 | - } |
|
| 45 | + echo "<br>"; |
|
| 46 | + } |
|
| 47 | 47 | } |