Index: a/webform_addressfield_extra/webform_addressfield_extra.module
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- a/webform_addressfield_extra/webform_addressfield_extra.moduld
+++ b/webform_addressfield_extra/webform_addressfield_extra.module
@@ -49,6 +49,7 @@
   if ($type == 'addressfield') {
     $defaults['extra']['autocomplete'] = TRUE;
     $defaults['extra']['api_key'] = '';
+    $defaults['extra']['restrict_country'] = '';
     $defaults['extra']['placeholder'] = '';
   }
 }
@@ -80,6 +81,14 @@
       '#weight' => 1,
       '#parents' => array('extra', 'api_key'),
     );
+    $form['extra']['autocomplete_container']['restrict_country'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Restrict by country'),
+      '#description' => t('Enable componentRestrictions functionnality for country value on this address component with "Available countries" values.'),
+      '#default_value' => $component['extra']['restrict_country'],
+      '#weight' => 1,
+      '#parents' => array('extra', 'restrict_country'),
+    );
     $form['display']['placeholder'] = array(
       '#type' => 'textfield',
       '#title' => t('Placeholder'),
@@ -237,6 +246,7 @@
         'placeholder'       => $component['extra']['placeholder'],
         'class'             => array('webform-addressfield-autocomplete-input'),
         'autocomplete'      => 'off',
+        'data-restrictCountry' => (!empty($component['extra']['available_countries']) && $component['extra']['restrict_country']) ? implode(',', $component['extra']['available_countries']) : '',
       ),
       '#translatable'     => array(
         'title',
\ No newline at end of file
Index: a/webform_addressfield_extra/webform_addressfield_extra.geocomplete.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- a/webform_addressfield_extra/webform_addressfield_extra.geocomplete.js
+++ b/webform_addressfield_extra/webform_addressfield_extra.geocomplete.js
@@ -118,8 +118,15 @@
         // Store the corresponding details_block in the widget field.
         $inputfield.data('addressfield', $addressfield);

+        // Prepare country restriction for Geocomplete js.
+        var restrictcountry = '';
+        if($inputfield.data('restrictcountry').length) {
+          restrictcountry = $inputfield.data('restrictcountry').split(',');
+        }
+
         $inputfield.geocomplete({
           //details: $($details_block, $addressfield),
+          country : restrictcountry,
           detailsAttribute: "data-geo"
         }).bind("geocode:result", function (event, result) {
           /*
