Function Hook_geocoding_bing->geocode
Definitions
sources/hooks/systems/geocoding/bing.php
- Geocode a written location.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $location | string | No | No | required parameter | N/A | N/A | Written location |
| &$errormsg | ?Tempcode | Yes | No | Null | N/A | N/A | Error message (returned by reference) (null: not set yet) |
Returns
- A tuple: Latitude, Longitude, NE lat, NE lng, SW lat, SW lng (null: error)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Geocode a written location.
*
* @param string $location Written location
* @param ?Tempcode $errormsg Error message (returned by reference) (null: not set yet)
* @return ?array A tuple: Latitude, Longitude, NE lat, NE lng, SW lat, SW lng (null: error)
*/
public function geocode(string $location, ?object &$errormsg = null) : ?array
* Geocode a written location.
*
* @param string $location Written location
* @param ?Tempcode $errormsg Error message (returned by reference) (null: not set yet)
* @return ?array A tuple: Latitude, Longitude, NE lat, NE lng, SW lat, SW lng (null: error)
*/
public function geocode(string $location, ?object &$errormsg = null) : ?array

