Google_LocationsServiceResource

The "locations" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_MirrorService.php  
  1. class Google_LocationsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Gets a single location by ID. (locations.get) 
  6. * @param string $id The ID of the location or latest for the last known location. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Location 
  9. */ 
  10. public function get($id, $optParams = array()) { 
  11. $params = array('id' => $id); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('get', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_Location($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * Retrieves a list of locations for the user. (locations.list) 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_LocationsListResponse 
  22. */ 
  23. public function listLocations($optParams = array()) { 
  24. $params = array(); 
  25. $params = array_merge($params, $optParams); 
  26. $data = $this->__call('list', array($params)); 
  27. if ($this->useObjects()) { 
  28. return new Google_LocationsListResponse($data); 
  29. } else { 
  30. return $data;