| @@ 156-172 (lines=17) @@ | ||
| 153 | return $address; |
|
| 154 | } |
|
| 155 | ||
| 156 | public function markAsVisited($params) |
|
| 157 | { |
|
| 158 | $address = Route4Me::makeRequst(array( |
|
| 159 | 'url' => Endpoint::UPDATE_ADDRESS_VISITED, |
|
| 160 | 'method' => 'GET', |
|
| 161 | 'query' => array( |
|
| 162 | 'route_id' => isset($params['route_id']) ? $params['route_id'] : null, |
|
| 163 | 'address_id' => isset($params['address_id']) ? $params['address_id'] : null, |
|
| 164 | 'member_id' => isset($params['member_id']) ? $params['member_id'] : null, |
|
| 165 | ), |
|
| 166 | 'body' => array( |
|
| 167 | 'is_visited' => isset($params['is_visited']) ? $params['is_visited'] : null |
|
| 168 | ) |
|
| 169 | )); |
|
| 170 | ||
| 171 | return $address; |
|
| 172 | } |
|
| 173 | ||
| 174 | public function delete() |
|
| 175 | { |
|
| @@ 262-280 (lines=19) @@ | ||
| 259 | return $optimize; |
|
| 260 | } |
|
| 261 | ||
| 262 | Public function addDepotsToHybrid($params) |
|
| 263 | { |
|
| 264 | $depots = Route4Me::makeRequst(array( |
|
| 265 | 'url' => Endpoint::CHANGE_HYBRID_OPTIMIZATION_DEPOT, |
|
| 266 | 'method' => 'POST', |
|
| 267 | 'query' => array( |
|
| 268 | 'optimization_problem_id' => isset($params['optimization_problem_id']) |
|
| 269 | ? $params['optimization_problem_id'] : null, |
|
| 270 | ), |
|
| 271 | 'body' => array( |
|
| 272 | 'optimization_problem_id' => isset($params['optimization_problem_id']) |
|
| 273 | ? $params['optimization_problem_id'] : null, |
|
| 274 | 'delete_old_depots' => isset($params['delete_old_depots']) ? $params['delete_old_depots'] : null, |
|
| 275 | 'new_depots' => isset($params['new_depots']) ? $params['new_depots'] : null, |
|
| 276 | ) |
|
| 277 | )); |
|
| 278 | ||
| 279 | return $depots; |
|
| 280 | } |
|
| 281 | } |
|
| 282 | ||