| @@ 65-77 (lines=13) @@ | ||
| 62 | return $addressbooklocation; |
|
| 63 | } |
|
| 64 | ||
| 65 | public static function getAddressBookLocation($addressId) |
|
| 66 | { |
|
| 67 | $ablocations = Route4Me::makeRequst(array( |
|
| 68 | 'url' => Endpoint::ADDRESS_BOOK_V4, |
|
| 69 | 'method' => 'GET', |
|
| 70 | 'query' => array( |
|
| 71 | 'query' => $addressId, |
|
| 72 | 'limit' => 30 |
|
| 73 | ) |
|
| 74 | )); |
|
| 75 | ||
| 76 | return $ablocations; |
|
| 77 | } |
|
| 78 | ||
| 79 | public static function searchRoutedLocation($params) |
|
| 80 | { |
|
| @@ 143-156 (lines=14) @@ | ||
| 140 | return $result; |
|
| 141 | } |
|
| 142 | ||
| 143 | public function duplicateRoute($route_id) |
|
| 144 | { |
|
| 145 | $result = Route4Me::makeRequst(array( |
|
| 146 | 'url' => Endpoint::ROUTE_DUPLICATE, |
|
| 147 | 'method' => 'GET', |
|
| 148 | 'query' => array( |
|
| 149 | 'api_key' => Route4Me::getApiKey(), |
|
| 150 | 'route_id' => $route_id, |
|
| 151 | 'to' => 'none', |
|
| 152 | ) |
|
| 153 | )); |
|
| 154 | ||
| 155 | return $result; |
|
| 156 | } |
|
| 157 | ||
| 158 | public function resequenceRoute($params) |
|
| 159 | { |
|