You are here

public function AddressToGeo::setFormatLanguage in Geolocation Address Link 8

Set the format language.

The language format is for deciding what language to use to create the address that we send to the geocoding service. The geocoordinates will be the same in any language, so it shouldn't matter.

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

File

src/AddressToGeo.php, line 134

Class

AddressToGeo
Class AddressToGeo.

Namespace

Drupal\geolocation_address_link

Code

public function setFormatLanguage($language = 'en') {
  $this->formatLanguage = $language;
}