Setting Up Locations For UK Directories

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000021026-setting-up-locations-for-uk-directories

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 are 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: 


  • "Neighborhood" 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 accomplish this, navigate to the Settings >> Advanced Settings and conduct a search for Member Profile URL Structure setting:



The next step would be replacing the country_name variable with the state_name variable. After the changes, the new structure would look like this:



Optimizing Field Labels via Form Manager To Match United Kingdom Locations 


IMPORTANT NOTE: Please do not edit the "Database Variable" in form of the default fields. Editing this variable name will not return the correct end results.

Navigate to Toolbox >> Form Manager and click Customize on a default Contact Details Form:




Enable the Display View for the field with the variable name country_code if planning to display this value on profiles pages and disable it this field needs to be hidden on profile pages. Please remember that the "Country" value will always be "United Kingdom" hence many site owners choose to hide this:




Enable the Display View for the field with the variable name state_code if planning to display this value on profiles pages and disable it this field needs to be hidden on profile pages. Please keep in mind that the "State" will always be England, Ireland, Northern Ireland, Scotland, and Wales for UK directories.



Optional #1: If you wish to add neighborhoods such as "Basford" or "Canton", please create a new field for this location type. To add a new field, simply click on Add Field button. This is how this newly created field would look like:




Optional #2: If you wish to add UK counties such as "Nottinghamshire", please create a new field for this location type. To add a new field, simply click on Add Field button. This is how this newly created field would look like:




Very Important Note: Please keep in mind that the steps Optional #1 and #2 are hard coded solutions that do not integrate with the location database. These custom variables will exist in the database but they will need to be called on the search results via customization.


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

siCvTWp5D5fBinTvLMuipZanYyvvBcYAsA.png