@@ 126-140 (lines=15) @@ | ||
123 | return $result; |
|
124 | } |
|
125 | ||
126 | public function markAsDeparted($params) |
|
127 | { |
|
128 | $address = Route4Me::makeRequst(array( |
|
129 | 'url' => self::$apiUrDeparted, |
|
130 | 'method' => 'GET', |
|
131 | 'query' => array( |
|
132 | 'route_id' => isset($params['route_id']) ? $params['route_id']: null, |
|
133 | 'address_id' => isset($params['address_id']) ? $params['address_id']: null, |
|
134 | 'is_departed' => isset($params['is_departed']) ? $params['is_departed']: null, |
|
135 | 'member_id' => isset($params['member_id']) ? $params['member_id']: null, |
|
136 | ), |
|
137 | )); |
|
138 | ||
139 | return $address; |
|
140 | } |
|
141 | ||
142 | public function markAsVisited($params) |
|
143 | { |
|
@@ 142-156 (lines=15) @@ | ||
139 | return $address; |
|
140 | } |
|
141 | ||
142 | public function markAsVisited($params) |
|
143 | { |
|
144 | $address = Route4Me::makeRequst(array( |
|
145 | 'url' => self::$apiUrVisited, |
|
146 | 'method' => 'GET', |
|
147 | 'query' => array( |
|
148 | 'route_id' => isset($params['route_id']) ? $params['route_id']: null, |
|
149 | 'address_id' => isset($params['address_id']) ? $params['address_id']: null, |
|
150 | 'is_visited' => isset($params['is_visited']) ? $params['is_visited']: null, |
|
151 | 'member_id' => isset($params['member_id']) ? $params['member_id']: null, |
|
152 | ), |
|
153 | )); |
|
154 | ||
155 | return $address; |
|
156 | } |
|
157 | ||
158 | public function delete() |
|
159 | { |
@@ 245-261 (lines=17) @@ | ||
242 | return $optimize; |
|
243 | } |
|
244 | ||
245 | Public function addDepotsToHybrid($params) |
|
246 | { |
|
247 | $depots = Route4Me::makeRequst(array( |
|
248 | 'url' => self::$apiHybridDepotUrl, |
|
249 | 'method' => 'POST', |
|
250 | 'query' => array( |
|
251 | 'optimization_problem_id' => isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null, |
|
252 | ), |
|
253 | 'body' => array( |
|
254 | 'optimization_problem_id' => isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null, |
|
255 | 'delete_old_depots' => isset($params['delete_old_depots']) ? $params['delete_old_depots'] : null, |
|
256 | 'new_depots' => isset($params['new_depots']) ? $params['new_depots'] : null, |
|
257 | ) |
|
258 | )); |
|
259 | ||
260 | return $depots; |
|
261 | } |
|
262 | } |
|
263 |