GoogleGAL_Service_CivicInfo_Divisions_Resource

The "divisions" collection of methods.

Defined (1)

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

/core/Google/Service/CivicInfo.php  
  1. class GoogleGAL_Service_CivicInfo_Divisions_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Searches for political divisions by their natural name or OCD ID. 
  5. * (divisions.search) 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string query The search query. Queries can cover any parts of a 
  8. * OCD ID or a human readable division name. All words given in the query are 
  9. * treated as required patterns. In addition to that, most query operators of 
  10. * the Apache Lucene library are supported. See 
  11. * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html 
  12. * @return GoogleGAL_Service_CivicInfo_DivisionSearchResponse 
  13. */ 
  14. public function search($optParams = array()) 
  15. $params = array(); 
  16. $params = array_merge($params, $optParams); 
  17. return $this->call('search', array($params), "GoogleGAL_Service_CivicInfo_DivisionSearchResponse");