Google_LocationServiceResource

The "location" collection of methods.

Defined (1)

The class is defined in the following location(s).

/src/contrib/Google_CoordinateService.php  
  1. class Google_LocationServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Retrieves a list of locations for a worker. (location.list) 
  5. * @param string $teamId Team ID 
  6. * @param string $workerEmail Worker email address. 
  7. * @param string $startTimestampMs Start timestamp in milliseconds since the epoch. 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param string maxResults Maximum number of results to return in one page. 
  10. * @opt_param string pageToken Continuation token 
  11. * @return Google_LocationListResponse 
  12. */ 
  13. public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) { 
  14. $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs); 
  15. $params = array_merge($params, $optParams); 
  16. $data = $this->__call('list', array($params)); 
  17. if ($this->useObjects()) { 
  18. return new Google_LocationListResponse($data); 
  19. } else { 
  20. return $data;