GeocoderInterface.php in Geocoder 8.3
Same filename and directory in other branches
Namespace
Drupal\geocoderFile
src/GeocoderInterface.phpView source
<?php
namespace Drupal\geocoder;
use Geocoder\Model\AddressCollection;
/**
* Provides a geocoder factory method interface.
*/
interface GeocoderInterface {
/**
* Geocodes a string.
*
* @param string $address_string
* The string to geocode.
* @param \Drupal\geocoder\GeocoderProviderInterface[] $providers
* A list of Geocoder providers to use to perform the geocoding.
*
* @return \Geocoder\Model\AddressCollection|\Geometry|null
* An address collection or NULL on geocoding failure.
*/
public function geocode(string $address_string, array $providers);
/**
* Reverse geocodes coordinates.
*
* @param string $latitude
* The latitude.
* @param string $longitude
* The longitude.
* @param \Drupal\geocoder\GeocoderProviderInterface[] $providers
* A list of Geocoder providers to use to perform the reverse geocoding.
*
* @return \Geocoder\Model\AddressCollection|null
* An address collection or NULL on geocoding failure.
*/
public function reverse(string $latitude, string $longitude, array $providers) : ?AddressCollection;
}
Interfaces
Name | Description |
---|---|
GeocoderInterface | Provides a geocoder factory method interface. |