convertRegionToAutocompleteOption(options) {

    const providerOptions = options;
    let region = _.get(providerOptions, 'params.region', '');
    if (region && !_.has(options, 'params.autocompleteOptions')) {
      region = region.toUpperCase().trim();
      // providing compatibility with ISO 3166-1 Alpha-2 county codes (for checking compatibility https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
      const countryCodes = { 'UK': 'GB' };
      if (countryCodes[region]) {
        region = countryCodes[region];
      }
      _.set(providerOptions, 'params.autocompleteOptions.componentRestrictions.country', [region]);
    }
  }
Converts the region to autocomplete option.
@param {ProviderOptions} options - The provider options.