Function Hook_geocoding_bing->_geocode

Definitions

sources/hooks/systems/geocoding/bing.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 (returned by reference) (null: not set yet)

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 (returned by reference) (null: not set yet)
 * @return ?array Geocode results (null: error)
 */

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