ProviderInterface.php in Geocoder 7.2
Namespace
Drupal\geocoder\Plugin\GeocoderFile
src/Plugin/Geocoder/ProviderInterface.phpView source
<?php
/**
* @file
* Contains \Drupal\geocoder\Plugin\Geocoder\ProviderInterface.
*/
namespace Drupal\geocoder\Plugin\Geocoder;
use Drupal\geocoder\Plugin\GeocoderPluginInterface;
use Geocoder\Model\AddressCollection;
use Ivory\HttpAdapter\HttpAdapterInterface;
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();
}
Interfaces
Name | Description |
---|---|
ProviderInterface |