Function Hook_geocoding_bing->reverse_geocode

Definitions

sources/hooks/systems/geocoding/bing.php

  • Geocode a latitude & longitude.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$latitude float No No required parameter N/A N/A Latitude
$longitude float No No required parameter N/A N/A Longitude
&$errormsg ?Tempcode Yes No Null N/A N/A Error message (returned by reference) (null: not set yet)

Returns

  • A tuple: Formatted address, Street Address, City, County, State, Zip/Postcode, Country, NE lat, NE lng, SW lat, SW lng (null: error)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Geocode a latitude & longitude.
 *
 * @param  float $latitude Latitude
 * @param  float $longitude Longitude
 * @param  ?Tempcode $errormsg Error message (returned by reference) (null: not set yet)
 * @return ?array A tuple: Formatted address, Street Address, City, County, State, Zip/Postcode, Country, NE lat, NE lng, SW lat, SW lng (null: error)
 */

public function reverse_geocode(float $latitude, float $longitude, ?object &$errormsg = null) : ?array