예제 #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();
 }