You are here

class OpenStreetMap in Geocoder 7.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Geocoder/Provider/OpenStreetMap.php \Drupal\geocoder\Plugin\Geocoder\Provider\OpenStreetMap
  2. 8.2 src/Plugin/Geocoder/Provider/OpenStreetMap.php \Drupal\geocoder\Plugin\Geocoder\Provider\OpenStreetMap

Class OpenStreetMap.

Plugin annotation


@GeocoderPlugin(
 id = "openstreetmap",
 name = "OpenStreetMap",
 type = "Provider",
 arguments = {
  "@geocoder.http_adapter",
  "@logger.channel.default",
  "@messenger"
 }
)

Hierarchy

Expanded class hierarchy of OpenStreetMap

File

src/Plugin/Geocoder/Provider/OpenStreetMap.php, line 28
The OpenStreetMap plugin.

Namespace

Drupal\geocoder\Plugin\Geocoder\Provider
View source
class OpenStreetMap extends Provider implements ProviderInterface {

  /**
   * @inheritdoc
   */
  public function init() {
    $this
      ->setHandler(new \Geocoder\Provider\OpenStreetMap($this
      ->getAdapter()));
    return parent::init();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GeocoderPlugin::cache_get public function Get a cache object based on the cache ID. Overrides GeocoderPluginInterface::cache_get
GeocoderPlugin::cache_set public function Stores data in the persistent cache. Overrides GeocoderPluginInterface::cache_set
GeocoderPlugin::getCacheCid public function Generates a cache ID based on the arguments. Overrides GeocoderPluginInterface::getCacheCid
GeocoderPlugin::getConfiguration public function Get the object's configuration. Overrides GeocoderPluginInterface::getConfiguration
GeocoderPlugin::setConfiguration public function Set the object's configuration. Overrides GeocoderPluginInterface::setConfiguration
OpenStreetMap::init public function @inheritdoc Overrides GeocoderPlugin::init
Provider::$adapter private property
Provider::$handler private property
Provider::$loggerChannel protected property The loggerChannel service.
Provider::$messenger protected property The messenger service.
Provider::geocode public function Geocode data Overrides ProviderInterface::geocode 1
Provider::getAdapter public function Returns the HTTP adapter. Overrides ProviderInterface::getAdapter
Provider::getHandler public function Get the Geocoder handler. Overrides ProviderInterface::getHandler
Provider::reverse public function Reverse geocode latitude and longitude. Overrides ProviderInterface::reverse 1
Provider::setHandler public function The Geocoder Provider. Overrides ProviderInterface::setHandler
Provider::__construct public function GeocoderPlugin constructor. Overrides GeocoderPlugin::__construct