You are here

public function AddressToGeo::setGeocoder in Geolocation Address Link 8

Set the geocoder.

1 call to AddressToGeo::setGeocoder()
AddressToGeo::__construct in src/AddressToGeo.php
Constructor.

File

src/AddressToGeo.php, line 110

Class

AddressToGeo
Class AddressToGeo.

Namespace

Drupal\geolocation_address_link

Code

public function setGeocoder($geocoder = 'google_geocoding_api') {
  $this->geocoder = $this->geolocationManager
    ->getGeocoderManager()
    ->getGeocoder($geocoder);
}