@@ 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 | { |
@@ 141-154 (lines=14) @@ | ||
138 | return $result; |
|
139 | } |
|
140 | ||
141 | public function duplicateRoute($route_id) |
|
142 | { |
|
143 | $result = Route4Me::makeRequst(array( |
|
144 | 'url' => Endpoint::ROUTE_DUPLICATE, |
|
145 | 'method' => 'GET', |
|
146 | 'query' => array( |
|
147 | 'api_key' => Route4Me::getApiKey(), |
|
148 | 'route_id' => $route_id, |
|
149 | 'to' => 'none', |
|
150 | ) |
|
151 | )); |
|
152 | ||
153 | return $result; |
|
154 | } |
|
155 | ||
156 | public function resequenceRoute($params) |
|
157 | { |