You are here

public function AddressToGeo::setFormatCountry in Geolocation Address Link 8

Set the format country.

The country format determines if the country name is appended to a postal address. If set to 'US', the country name would be added for all countries except the USA (it assumes this is a postal label for mail sent from the US). This probably matches the geocoding service's expectations.

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

File

src/AddressToGeo.php, line 123

Class

AddressToGeo
Class AddressToGeo.

Namespace

Drupal\geolocation_address_link

Code

public function setFormatCountry($country = 'US') {
  $this->formatCountry = $country;
}