Google_LocationServiceResource
The "location" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /src/contrib/Google_CoordinateService.php
- class Google_LocationServiceResource extends Google_ServiceResource {
- /**
- * Retrieves a list of locations for a worker. (location.list)
- *
- * @param string $teamId Team ID
- * @param string $workerEmail Worker email address.
- * @param string $startTimestampMs Start timestamp in milliseconds since the epoch.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults Maximum number of results to return in one page.
- * @opt_param string pageToken Continuation token
- * @return Google_LocationListResponse
- */
- public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) {
- $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_LocationListResponse($data);
- } else {
- return $data;
- }
- }
- }