# Location geocoder

This wizard allows you to create two virtual variables to identify the Latitude and Longitude of a given set of records. These records can be identified through using existing geographical variables e.g. Zip/Postcode, Postal Area, Town etc.

The virtual variables created are useful when using the Geographical Functions in Expressions.

[Location functions](<https://help.apteco.com/en/faststats/expressions/location-functions/index.md>)

On the **Wizard** tab click on the **Location Geocoder** link to start the wizard.

## Selection

Start by creating a selection which identifies the records to be used.

In this example we will create the Latitude and Longitude variables to allow you to find the **households, by Postcode, for a selection of High Earners.**

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_1_Selection.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_1_Selection.png>)

- Create a selection of People with an **Income of £100k+**

  [![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_Selection-Q417-(1).png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_Selection-Q417-(1).png>)
- Drag the selection onto the **Drop your selection here** box.

## Geographic match

Identify the world region:

- From the drop down box select the **World Region** that applies to your records.

  [![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_2_Geographic-Match.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_2_Geographic-Match.png>)

Specify the geographical information on which the Latitude and Longitude information will be based.

- Drag the **Postcode** onto the **Drop your geographic variable here** box.
- From the drop down box select the **Country** that relates to your records.
- If the geographical variable is part of a zip or postcode tick the **Include in geocoding** box.

## Folders

Choose the folder that the new variable should be created in.

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_3_Folders.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_3_Folders.png>)

Create (if necessary) and highlight the folder to hold the virtual variables you are about to generate.

## Notes

You can choose to add notes to your variable. These can be viewed later by right-clicking on the variable once it is in the [System Explorer](<https://help.apteco.com/en/faststats/getting-started/interface/index.md>).

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_4_Notes.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_4_Notes.png>)

Enter any **Notes** you wish to record.

## Latitude name

To create the first of the virtual variables, Latitude, you will need to give it a relevant name.

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_5_Latitude-Name.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_5_Latitude-Name.png>)

1. Enter the Description of the Latitude virtual variable that will be created - e.g. **High Income Latitude**.
2. To overwrite an existing virtual variable drag it on to the **Drop the variable to overwrite here** drop box.
3. Tick the **Modify Security Attributes** box to allow you access to [Latitude Security](<#latitude-security>) (This option is only available on the Enterprise Version)

## Latitude security

This is an optional step available on the Enterprise version of the software.

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_6_Latitude-Security.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_6_Latitude-Security.png>)

Use the tick boxes to set the security setting you wish to apply to the Latitude virtual variable.

## Longitude name

To create the second of the virtual variables, Longitude, you will need to give it a relevant name.

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_8_Longitude-Name.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_8_Longitude-Name.png>)

1. Enter the Description of the Longitude virtual variable that will be created - e.g. **High Income Longitude.**
2. To overwrite an existing virtual variable drag it on to the **Drop the variable to overwrite here** drop box.
3. Tick the **Modify Security Attributes** box to allow you access to [Longitude Security](<#longitude-security>) (This option is only available on the Enterprise Version)

   [![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo-Match-Progress-Q417-(1).png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo-Match-Progress-Q417-(1).png>)

## Longitude security

This is an optional step available on the Enterprise version of the software.

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_9_Longitude-Security.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_9_Longitude-Security.png>)

Use the tick boxes to set the security setting you wish to apply to the Longitude virtual variable.

## Finish

When you reach this step, the actions required by this wizard have been performed. The new variable has been highlighted in the [System Explorer](<https://help.apteco.com/en/faststats/getting-started/interface/index.md>).

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_11_Finish.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/location-geocoder-wizard/LocGeo_11_Finish.png>)

Tick the **Show new variable as a selection** box if you want to view the variable when the wizard is closed.

Click Finish to close the wizard.

## Dependants

Where it is possible to edit a virtual variable, the step panel on the left of the wizard gives two opportunities to review any dependant variables on the one being updated.

> [!NOTE]
>
> The review of dependant variables is only available to Enterprise system users.

The first review comes by marking the **Review Dependant Variables** box on the Name step. This gives the opportunity to see which variables will be affected by the potential changes before the update takes place.

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/LocGeo_Dependents-1.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/LocGeo_Dependents-1.png>)

The second review is available after the update has taken place by marking the **Show dependant variables** box on the Finish step.

> [!NOTE]
>
> It is a personal choice as to whether a review of dependant variables is made before or after the update of a virtual variable. In either case you will need to manually amend any dependant variables, if required.

Alternatively, it is possible to review all Virtual Variables by navigating to the **Manage Virtual Variables** window:

- File – Tools – Manage Virtual Variables…
- Highlight a Virtual Variable in the grid and click on…

**Find Dependencies** – which will show virtual variables that are used in its creation

**Find Dependents** – which will show Virtual Variables that use this variable in their creation

[![](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/LocGeo_Dependents-2.png>)](<https://help.apteco.com/assets/images/faststats/wizards-and-virtual-variables/LocGeo_Dependents-2.png>)
