function reverse in Geocoder 7.2
The reverse Geocoder API call.
Given one or more plugin id(s), a latitude and a longitude, reverse geocode the given data.
@example: reverse('googlemaps', '37.4224504', '-122.0840859');
@codingStandardsIgnoreStart
Parameters
string|string[] $plugin_ids: The geocoder plugin id(s) to use.
string $latitude: The latitude.
string $longitude: The longitude.
array $options: Additional options to pass to the handler. Exact key / values to pass depend on the handler. (Optional)
Return value
mixed \Geocoder\Model\AddressCollection|FALSE
1 call to reverse()
- geocoder_field_field_formatter_view in modules/
geocoder_field/ geocoder_field.module - Implements hook_field_formatter_view().
File
- ./
geocoder.module, line 65 - Module file for Geocoder module.
Code
function reverse($plugin_ids = 'googlemaps', $latitude, $longitude, array $options = array()) {
if ($value = \Drupal\geocoder\Geocoder::reverse($plugin_ids, $latitude, $longitude, $options)) {
// @codingStandardsIgnoreEnd
return $value;
}
return FALSE;
}