@@ 67-79 (lines=13) @@ | ||
64 | ||
65 | ||
66 | ||
67 | public static function getAddressBookLocation($addressId) |
|
68 | { |
|
69 | $ablocations = Route4Me::makeRequst(array( |
|
70 | 'url' => Endpoint::ADDRESS_BOOK_V4, |
|
71 | 'method' => 'GET', |
|
72 | 'query' => array( |
|
73 | 'query' => $addressId, |
|
74 | 'limit' => 30 |
|
75 | ) |
|
76 | )); |
|
77 | ||
78 | return $ablocations; |
|
79 | } |
|
80 | ||
81 | public static function searchAddressBookLocations($params) |
|
82 | { |
|
@@ 94-105 (lines=12) @@ | ||
91 | return $result; |
|
92 | } |
|
93 | ||
94 | public static function getAddressBookLocations($params) |
|
95 | { |
|
96 | $allQueryFields = array('limit', 'offset'); |
|
97 | ||
98 | $ablocations = Route4Me::makeRequst(array( |
|
99 | 'url' => Endpoint::ADDRESS_BOOK_V4, |
|
100 | 'method' => 'GET', |
|
101 | 'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
|
102 | )); |
|
103 | ||
104 | return $ablocations; |
|
105 | } |
|
106 | ||
107 | public static function getAddressBookLocationsByIDs($ids) |
|
108 | { |
@@ 130-142 (lines=13) @@ | ||
127 | return $result; |
|
128 | } |
|
129 | ||
130 | public function duplicateRoute($route_id) |
|
131 | { |
|
132 | $result = Route4Me::makeRequst(array( |
|
133 | 'url' => Endpoint::ROUTE_DUPLICATE, |
|
134 | 'method' => 'GET', |
|
135 | 'query' => array( |
|
136 | 'route_id' => $route_id, |
|
137 | 'to' => 'none', |
|
138 | ) |
|
139 | )); |
|
140 | ||
141 | return $result; |
|
142 | } |
|
143 | ||
144 | public function resequenceRoute($params) |
|
145 | { |
|
@@ 330-341 (lines=12) @@ | ||
327 | return $result; |
|
328 | } |
|
329 | ||
330 | public function deleteRoutes($route_id) |
|
331 | { |
|
332 | $result = Route4Me::makeRequst(array( |
|
333 | 'url' => Endpoint::ROUTES_DELETE, |
|
334 | 'method' => 'DELETE', |
|
335 | 'query' => array( |
|
336 | 'route_id' => $route_id, |
|
337 | ) |
|
338 | )); |
|
339 | ||
340 | return $result; |
|
341 | } |
|
342 | ||
343 | public function GetAddressesFromRoute($route_id) |
|
344 | { |