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