You are here

public function GeocoderInterface::reverse in Geocoder 8.3

Same name and namespace in other branches
  1. 8.2 src/GeocoderInterface.php \Drupal\geocoder\GeocoderInterface::reverse()

Reverse geocodes coordinates.

Parameters

string $latitude: The latitude.

string $longitude: The longitude.

\Drupal\geocoder\GeocoderProviderInterface[] $providers: A list of Geocoder providers to use to perform the reverse geocoding.

Return value

\Geocoder\Model\AddressCollection|null An address collection or NULL on geocoding failure.

1 method overrides GeocoderInterface::reverse()
Geocoder::reverse in src/Geocoder.php
Reverse geocodes coordinates.

File

src/GeocoderInterface.php, line 38

Class

GeocoderInterface
Provides a geocoder factory method interface.

Namespace

Drupal\geocoder

Code

public function reverse(string $latitude, string $longitude, array $providers) : ?AddressCollection;