interface ProviderInterface in Geocoder 7.2
Hierarchy
- interface \Drupal\geocoder\Plugin\GeocoderPluginInterface extends \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\geocoder\Plugin\Geocoder\ProviderInterface
Expanded class hierarchy of ProviderInterface
All classes that implement ProviderInterface
19 files declare their use of ProviderInterface
- ArcGISOnline.php in src/
Plugin/ Geocoder/ Provider/ ArcGISOnline.php - The ArcGISOnline plugin.
- BingMaps.php in src/
Plugin/ Geocoder/ Provider/ BingMaps.php - The BingMaps plugin.
- File.php in src/
Plugin/ Geocoder/ Provider/ File.php - The File plugin.
- FreeGeoIp.php in src/
Plugin/ Geocoder/ Provider/ FreeGeoIp.php - The FreeGeoIp plugin.
- Geocoder.php in src/
Geocoder.php
File
- src/
Plugin/ Geocoder/ ProviderInterface.php, line 14 - Contains \Drupal\geocoder\Plugin\Geocoder\ProviderInterface.
Namespace
Drupal\geocoder\Plugin\GeocoderView source
interface ProviderInterface extends GeocoderPluginInterface {
/**
* Geocode data
*
* @param string $data
* The data to geocode.
*
* @return AddressCollection|FALSE
*/
public function geocode($data);
/**
* Reverse geocode latitude and longitude.
*
* @param float $latitude
* The latitude
* @param float $longitude
* The longitude
*
* @return AddressCollection|FALSE
*/
public function reverse($latitude, $longitude);
/**
* Set the Geocoder handler to use.
*
* @param \Geocoder\Provider\Provider $handler
* The handler
*
* @return ProviderInterface
*/
public function setHandler(\Geocoder\Provider\Provider $handler);
/**
* Get the Geocoder handler.
*
* @return \Geocoder\Provider\Provider
*/
public function getHandler();
/**
* Returns the HTTP adapter.
*
* @return HttpAdapterInterface
*/
public function getAdapter();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GeocoderPluginInterface:: |
public | function | Get a cache object based on the cache ID. | 1 |
GeocoderPluginInterface:: |
public | function | Stores data in the persistent cache. | 1 |
GeocoderPluginInterface:: |
public | function | Generates a cache ID based on the arguments. | 1 |
GeocoderPluginInterface:: |
public | function | Get the object's configuration. | 1 |
GeocoderPluginInterface:: |
public | function | Init method launched after object initialization. | 1 |
GeocoderPluginInterface:: |
public | function | Set the object's configuration. | 1 |
ProviderInterface:: |
public | function | Geocode data | 1 |
ProviderInterface:: |
public | function | Returns the HTTP adapter. | 1 |
ProviderInterface:: |
public | function | Get the Geocoder handler. | 1 |
ProviderInterface:: |
public | function | Reverse geocode latitude and longitude. | 1 |
ProviderInterface:: |
public | function | Set the Geocoder handler to use. | 1 |