Function Hook_geocoding_google->_geocode

Definitions

sources/hooks/systems/geocoding/google.php

  • Geocode a written location.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$url_params string No No required parameter N/A N/A What to add into the URL
&$errormsg ?Tempcode Yes No Null N/A N/A Error message (written by reference) (null: not returned)

Returns

  • Geocode results (null: error)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Geocode a written location.
 *
 * @param  string $url_params What to add into the URL
 * @param  ?Tempcode $errormsg Error message (written by reference) (null: not returned)
 * @return ?array Geocode results (null: error)
 */

protected function _geocode(string $url_params, ?object &$errormsg = null) : ?array