You are here

interface ProviderInterface in Geocoder 7.2

Hierarchy

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

... See full list

File

src/Plugin/Geocoder/ProviderInterface.php, line 14
Contains \Drupal\geocoder\Plugin\Geocoder\ProviderInterface.

Namespace

Drupal\geocoder\Plugin\Geocoder
View 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

Namesort descending Modifiers Type Description Overrides
GeocoderPluginInterface::cache_get public function Get a cache object based on the cache ID. 1
GeocoderPluginInterface::cache_set public function Stores data in the persistent cache. 1
GeocoderPluginInterface::getCacheCid public function Generates a cache ID based on the arguments. 1
GeocoderPluginInterface::getConfiguration public function Get the object's configuration. 1
GeocoderPluginInterface::init public function Init method launched after object initialization. 1
GeocoderPluginInterface::setConfiguration public function Set the object's configuration. 1
ProviderInterface::geocode public function Geocode data 1
ProviderInterface::getAdapter public function Returns the HTTP adapter. 1
ProviderInterface::getHandler public function Get the Geocoder handler. 1
ProviderInterface::reverse public function Reverse geocode latitude and longitude. 1
ProviderInterface::setHandler public function Set the Geocoder handler to use. 1