Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $configuration = $this->getConfiguration();
     $this->setHandler(new \Geocoder\Provider\MaxMind($this->getAdapter(), $configuration['apiKey']));
     return parent::init();
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->setHandler(new \Drupal\geocoder\Geocoder\Provider\File());
     return parent::init();
 }
Ejemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->setHandler(new \Geocoder\Provider\FreeGeoIp($this->getAdapter()));
     return parent::init();
 }
Ejemplo n.º 4
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $configuration = $this->getConfiguration();
     $this->setHandler(new \Geocoder\Provider\Nominatim($this->getAdapter(), $configuration['rootUrl']));
     return parent::init();
 }
Ejemplo n.º 5
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->setHandler(new \Geocoder\Provider\Geoip());
     return parent::init();
 }
Ejemplo n.º 6
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $configuration = $this->getConfiguration();
     $this->setHandler(new \Geocoder\Provider\Geonames($this->getAdapter(), $configuration['username']));
     return parent::init();
 }
Ejemplo n.º 7
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $configuration = $this->getConfiguration();
     $this->setHandler(new \Geocoder\Provider\ArcGISOnline($this->getAdapter(), $configuration['sourceCountry']));
     return parent::init();
 }