Your Brilliant Directories website is integrated with Google Maps API. This means that your website is powered by the robust functionality of Brilliant Directories. This also means that there are certain limitations regarding what Brilliant Directories can do to edit Google Maps functionality. 

Here are some important items every United Kingdom Website owner should be aware of: 

Google Location Types: 

Google assigns "United Kingdom" as the "Country" location type and "England" as the "Administrative Area Level 1" type which is normally reserved for States and Provinces. 

In all, Brilliant Directories uses five location types that you can set to either "bounds" or "radius". The Bounding and Radius Location Searches articles outlines in detail the difference between these settings and what each means. 

It is important to understand that although only five settings appear in the admin, there are 24 total location types that are controlled by these six primary settings and all based on the Google Location response. The parent settings are:

  • "Zip / Postal Code" searches are for Zip Codes
  • "Locality" searches are for cities
  • "Administrative Area Level 2" searches are for counties
  • "Administrative Area Level 1" searches are for States and Provinces
  • Country 

There is a sixth location type that the Brilliant Directories system does not provide settings or SEO templates for: 

  • "Neighbourhood" searches are very rarely used and we would recommend not modifying this setting

The following chart shows all of the google location types and which primary setting they are tied to: 

Hiding "United Kingdom" From URL Structure

Brilliant Directories makes it easy to hide the "country" location type and swamp it for the "Administrative Area Level 1". This means that your member and feature posts URL structure will go from looking like this: 

To set this up please set these two advance settings to "1":



Optimizing Field Labels To Match United Kingdom Locations 

IMPORTANT: Do not edit the "variable". Editing the "variable" will cause the search and location system to break. 

Please follow these instructions to customize the Contact Details location field labels: 
  1. Set "Select Country" to "Show in Display View" "Yes" if you want it to appear on the profile page  and "No"  if you want to hide it. Please remember that the "Country" will always be "United Kingdom". Many customers choose to hide this.


  2. Set "State"  to "Show in Display View" "Yes" if you want it to appear on the profile page  and "No"  if you want to hide it. Please remember that the "State" will always be "England, Ireland, Northern Ireland, Scotland or Wales" for UK directories. Set "Display View "Y", Input View "N":


  3. If you wish to add "neibourhoods" such as "Basford" or "Canton" we recommend creating a new Field Label for this location type. This video covers how to add custom variables such as this one and how to make them display on your members' profile pages.

  4. If you wish to add UK counties such as "nottinghamshire" we recommend creating a new Field Label for this location type and following the steps of the link above.

Please note that #3 and #4 are hard coded solutions that do not integrate with the location database. These custom variabels will exist in the database, and you will be able to call them on search result pages and profile pages should you wish to have them display. 

Also, for #3 and #4, you can make these show on your member profile page by adding some custom code and calling these new variables in the "Bootstrap Theme - Member Profile - Overview Tab" widget. You can see an example of how this can look below. We've highlighted the custom variables that we added in yellow:


 This is the code that we used in the example above:

 <li class="col-sm-8" itemprop="address" itemscope itemtype="">
                    if ($user[address1] != "") { 
                        echo "<span itemprop='streetAddress'>" . $user[address1] . "</span><br />"; 
                    if ($user[address2] != "") {  
                        echo $user[address2] . ", "; 
if ($user[uk_neighbourhood] != "") {
echo "<span itemprop='addressLocality'>" . trim($user[uk_neighbourhood]) . "</span> <br>";
                    if ($user[city] != "") {  
                        echo "<span itemprop='addressLocality'>" . trim($user[city]) . "</span>, "; 
if ($user[uk_county] != "") {
echo "<span itemprop='countryLocality'>" .trim($user[uk_county]) ."</span>, ";
                    if ($user[state_code] != "") { 
                        echo "<span itemprop='addressRegion'>" . $user[state_code] . "</span>"; 
                    if ($user[zip_code] != "") { 
                        echo " <span itemprop='postalCode'>" . $user[zip_code] . "</span><br />" . getCountry($user[country_code],$w); 
                    } ?>


This is how we set the form up for the example above: 


And this is what it looks like when your members are filling out the contact details form: