@@ 425-442 (lines=18) @@ | ||
422 | ||
423 | } |
|
424 | ||
425 | public function GetTrackingHistoryFromTimeRange(array $params) |
|
426 | { |
|
427 | $route = Route4Me::makeRequst(array( |
|
428 | 'url' => self::$apiUrlDeviceLocation, |
|
429 | 'method' => 'GET', |
|
430 | 'query' => array( |
|
431 | 'api_key' => Route4Me::getApiKey(), |
|
432 | 'route_id' => isset($params['route_id']) ? $params['route_id'] : null, |
|
433 | 'format' => isset($params['format']) ? $params['format'] : null, |
|
434 | 'time_period' => isset($params['time_period']) ? $params['time_period'] : null, |
|
435 | 'start_date' => isset($params['start_date']) ? $params['start_date'] : null, |
|
436 | 'end_date' => isset($params['end_date']) ? $params['end_date'] : null |
|
437 | ) |
|
438 | )); |
|
439 | ||
440 | return $route; |
|
441 | ||
442 | } |
|
443 | ||
444 | public function GetAssetTracking(array $params) |
|
445 | { |
@@ 62-77 (lines=16) @@ | ||
59 | return $ablocations; |
|
60 | } |
|
61 | ||
62 | public static function searchRoutedLocation($params) |
|
63 | { |
|
64 | $result= Route4Me::makeRequst(array( |
|
65 | 'url' => self::$apiUrl, |
|
66 | 'method' => 'GET', |
|
67 | 'query' => array( |
|
68 | 'display' => isset($params['display']) ? $params['display']: null, |
|
69 | 'query' => isset($params['query']) ? $params['query']: null, |
|
70 | 'fields' => isset($params['fields']) ? $params['fields']: null, |
|
71 | 'limit' => isset($params['limit']) ? $params['limit']: null, |
|
72 | 'offset' => isset($params['offset']) ? $params['offset'] : null, |
|
73 | ) |
|
74 | )); |
|
75 | ||
76 | return $result; |
|
77 | } |
|
78 | ||
79 | public static function getAddressBookLocations($params) |
|
80 | { |