| @@ 169-185 (lines=17) @@ | ||
| 166 | return $address; |
|
| 167 | } |
|
| 168 | ||
| 169 | public function markAsVisited($params) |
|
| 170 | { |
|
| 171 | $address = Route4Me::makeRequst(array( |
|
| 172 | 'url' => Endpoint::UPDATE_ADDRESS_VISITED, |
|
| 173 | 'method' => 'GET', |
|
| 174 | 'query' => array( |
|
| 175 | 'route_id' => isset($params['route_id']) ? $params['route_id'] : null, |
|
| 176 | 'address_id' => isset($params['address_id']) ? $params['address_id'] : null, |
|
| 177 | 'member_id' => isset($params['member_id']) ? $params['member_id'] : null, |
|
| 178 | ), |
|
| 179 | 'body' => array( |
|
| 180 | 'is_visited' => isset($params['is_visited']) ? $params['is_visited'] : null |
|
| 181 | ) |
|
| 182 | )); |
|
| 183 | ||
| 184 | return $address; |
|
| 185 | } |
|
| 186 | ||
| 187 | public function delete() |
|
| 188 | { |
|
| @@ 259-277 (lines=19) @@ | ||
| 256 | return $optimize; |
|
| 257 | } |
|
| 258 | ||
| 259 | Public function addDepotsToHybrid($params) |
|
| 260 | { |
|
| 261 | $depots = Route4Me::makeRequst(array( |
|
| 262 | 'url' => Endpoint::CHANGE_HYBRID_OPTIMIZATION_DEPOT, |
|
| 263 | 'method' => 'POST', |
|
| 264 | 'query' => array( |
|
| 265 | 'optimization_problem_id' => isset($params['optimization_problem_id']) |
|
| 266 | ? $params['optimization_problem_id'] : null, |
|
| 267 | ), |
|
| 268 | 'body' => array( |
|
| 269 | 'optimization_problem_id' => isset($params['optimization_problem_id']) |
|
| 270 | ? $params['optimization_problem_id'] : null, |
|
| 271 | 'delete_old_depots' => isset($params['delete_old_depots']) ? $params['delete_old_depots'] : null, |
|
| 272 | 'new_depots' => isset($params['new_depots']) ? $params['new_depots'] : null, |
|
| 273 | ) |
|
| 274 | )); |
|
| 275 | ||
| 276 | return $depots; |
|
| 277 | } |
|
| 278 | } |
|
| 279 | ||