@@ 144-158 (lines=15) @@ | ||
141 | return $result; |
|
142 | } |
|
143 | ||
144 | public function markAsDeparted($params) |
|
145 | { |
|
146 | $address = Route4Me::makeRequst(array( |
|
147 | 'url' => self::$apiUrDeparted, |
|
148 | 'method' => 'GET', |
|
149 | 'query' => array( |
|
150 | 'route_id' => isset($params['route_id']) ? $params['route_id']: null, |
|
151 | 'address_id' => isset($params['address_id']) ? $params['address_id']: null, |
|
152 | 'is_departed' => isset($params['is_departed']) ? $params['is_departed']: null, |
|
153 | 'member_id' => isset($params['member_id']) ? $params['member_id']: null, |
|
154 | ), |
|
155 | )); |
|
156 | ||
157 | return $address; |
|
158 | } |
|
159 | ||
160 | public function markAsVisited($params) |
|
161 | { |
|
@@ 160-174 (lines=15) @@ | ||
157 | return $address; |
|
158 | } |
|
159 | ||
160 | public function markAsVisited($params) |
|
161 | { |
|
162 | $address = Route4Me::makeRequst(array( |
|
163 | 'url' => self::$apiUrVisited, |
|
164 | 'method' => 'GET', |
|
165 | 'query' => array( |
|
166 | 'route_id' => isset($params['route_id']) ? $params['route_id']: null, |
|
167 | 'address_id' => isset($params['address_id']) ? $params['address_id']: null, |
|
168 | 'is_visited' => isset($params['is_visited']) ? $params['is_visited']: null, |
|
169 | 'member_id' => isset($params['member_id']) ? $params['member_id']: null, |
|
170 | ), |
|
171 | )); |
|
172 | ||
173 | return $address; |
|
174 | } |
|
175 | ||
176 | public function delete() |
|
177 | { |
@@ 246-262 (lines=17) @@ | ||
243 | return $optimize; |
|
244 | } |
|
245 | ||
246 | Public function addDepotsToHybrid($params) |
|
247 | { |
|
248 | $depots = Route4Me::makeRequst(array( |
|
249 | 'url' => self::$apiHybridDepotUrl, |
|
250 | 'method' => 'POST', |
|
251 | 'query' => array( |
|
252 | 'optimization_problem_id' => isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null, |
|
253 | ), |
|
254 | 'body' => array( |
|
255 | 'optimization_problem_id' => isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null, |
|
256 | 'delete_old_depots' => isset($params['delete_old_depots']) ? $params['delete_old_depots'] : null, |
|
257 | 'new_depots' => isset($params['new_depots']) ? $params['new_depots'] : null, |
|
258 | ) |
|
259 | )); |
|
260 | ||
261 | return $depots; |
|
262 | } |
|
263 | } |
|
264 |