| @@ 79-94 (lines=16) @@ | ||
| 76 | return $ablocations; |
|
| 77 | } |
|
| 78 | ||
| 79 | public static function searchRoutedLocation($params) |
|
| 80 | { |
|
| 81 | $result= Route4Me::makeRequst(array( |
|
| 82 | 'url' => Endpoint::ADDRESS_BOOK_V4, |
|
| 83 | 'method' => 'GET', |
|
| 84 | 'query' => array( |
|
| 85 | 'display' => isset($params['display']) ? $params['display'] : null, |
|
| 86 | 'query' => isset($params['query']) ? $params['query'] : null, |
|
| 87 | 'fields' => isset($params['fields']) ? $params['fields'] : null, |
|
| 88 | 'limit' => isset($params['limit']) ? $params['limit'] : null, |
|
| 89 | 'offset' => isset($params['offset']) ? $params['offset'] : null, |
|
| 90 | ) |
|
| 91 | )); |
|
| 92 | ||
| 93 | return $result; |
|
| 94 | } |
|
| 95 | ||
| 96 | public static function getAddressBookLocations($params) |
|
| 97 | { |
|
| @@ 459-475 (lines=17) @@ | ||
| 456 | return Route::fromArray($route); |
|
| 457 | } |
|
| 458 | ||
| 459 | public function GetTrackingHistoryFromTimeRange(array $params) |
|
| 460 | { |
|
| 461 | $route = Route4Me::makeRequst(array( |
|
| 462 | 'url' => Endpoint::GET_DEVICE_LOCATION, |
|
| 463 | 'method' => 'GET', |
|
| 464 | 'query' => array( |
|
| 465 | 'api_key' => Route4Me::getApiKey(), |
|
| 466 | 'route_id' => isset($params['route_id']) ? $params['route_id'] : null, |
|
| 467 | 'format' => isset($params['format']) ? $params['format'] : null, |
|
| 468 | 'time_period' => isset($params['time_period']) ? $params['time_period'] : null, |
|
| 469 | 'start_date' => isset($params['start_date']) ? $params['start_date'] : null, |
|
| 470 | 'end_date' => isset($params['end_date']) ? $params['end_date'] : null |
|
| 471 | ) |
|
| 472 | )); |
|
| 473 | ||
| 474 | return $route; |
|
| 475 | } |
|
| 476 | ||
| 477 | public function GetAssetTracking(array $params) |
|
| 478 | { |
|