> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.metalocator.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Finding the Territory Values for a Particular Search

This article is a step by step guide to find the Region, State, or City Territory that is required for a result to show under a certain search use the Geocoding Test Tool.

**Important Note: It is recommended to use County and Postal Territories instead of City Territories as they reduce complexity and need for multiple spellings for the same territory in the field.  
​**

This is especially important for locators that have the Territory Only setting enabled for their locator as certain searches can be returned as No Results even though there is a very similar spelling in the data. (in this example the data has "Mount-Royal,QC" but the geocoder is looking for "Mount Royal,QC")

## 1. Find the City Territory for the Search

The **Geocoding Test Tool** can be found under the wrench Icon in your account.

Type the search into the **Address** and **TLD** fields and select **GO**

For this example the Address is "Mount-Royal, QC" and the TLD is CA for Canada.

In this view you will see Admin levels, Locality and postal code geolocation for this search.

**State Territories are located under Types:** "Administrative area level 1"

**County Territories are located under Types:** "Administrative area level 2"

**City Territories are located under Types:** "Locality"

[![](https://storage.crisp.chat/users/helpdesk/website/-/e/5/1/3/e513a0024d51e800/1e2f50de-7061-4662-bb15-14a4ce_1te0gek.png)](https://downloads.intercomcdn.com/i/o/1178045431/7464f94accec5eb6d2705196/image.png?expires=1794513600&signature=39e0c02749e6ad541247f6e46c0e9b6804bc3c5691b32aa2b0f03f83b57ee2be&req=dSEgHsl6mIVcWPMW1HO4zTljgnFpeQaVEhL%2FpEjMTvg1Q0kQIvC2us8zyaiR%0AdIVvpxsFzFEZNcLZ41A%3D%0A)

For this example the city output is "**Mont Royal**" and to populate this as a city territory it would be formatted as "**Mount Royal,QC"** per the instructions in this support article:

[https://support.metalocator.com/en/articles/1656283-using-territories#h_5ea7029ffe](https://support.metalocator.com/en/articles/1656283-using-territories#h_5ea7029ffe)

## 2. Identify Location to Add Territory

Preform the original search on the front end and observe what is returning. In this case there is a no results message so we look to the data.

[![](https://storage.crisp.chat/users/helpdesk/website/-/7/e/0/8/7e08f3841ebd6000/8f0f01b5-da18-4550-9dfd-e4e9cd_1c7qbwf.png)](https://downloads.intercomcdn.com/i/o/1178173514/6b1ec8735dfccd2816dc58c3/image.png?expires=1794513600&signature=1951758bdda60bd8469f16905693de0b5ed93f18d920ff7df45dddc996b64c2b&req=dSEgHsh5noReXfMW1HO4zZTofW1YUpRzRyOjWnRFfgsnFoZP35jSeQZw%2B%2B7b%0AB4T1%2Bxkf8K%2FO7BekYJY%3D%0A)

[Export the data](https://support.metalocator.com/en/articles/1655848-introduction-to-exporting-data) and search the territory city field for the city territory found above "Mount Royal,QC"

[![](https://storage.crisp.chat/users/helpdesk/website/-/9/d/3/7/9d37d424be589800/59b8fc98-9057-4b37-bc7c-b3b2da_mf062s.png)](https://downloads.intercomcdn.com/i/o/1178174189/9e263be532fdc7f0467b78fb/image.png?expires=1794513600&signature=63e0918eccc81afb9b8b5b7838f63b019fba3ec4c37b97d13fdda89ed987dd2e&req=dSEgHsh5mYBXUPMW1HO4zTsQkPH5s2soe1op%2FD0qWDbRRNHg2GmSOV5tC1W7%0ADv8e97dTETtjuK21Cag%3D%0A)

Again there are no results match for that **City Territory** which is why it is appearing blank on the locator.

For this example "**Airtechni Inc**" has "Mount-Royal,QC" as a City Territory. To solve for this search "Mount Royal,QC" needs to be added to the locations City Territory field.

## 3. Add City Territory To Record

Navigate into the **All Records** in the account and search for "**Airtechni Inc**" and select the location name to edit.

Under the **Custom Fields** **Tab** > **Territory City** add the territory and save.

[![](https://storage.crisp.chat/users/helpdesk/website/-/3/f/4/d/3f4d541071e64c00/edcbc829-dcee-42b7-a2f9-c10b1c_ympz9d.png)](https://downloads.intercomcdn.com/i/o/1178070290/c7211186ba66c522d1327b85/image.png?expires=1794513600&signature=0c598dae2696bbeed48261ff63373576d74799be98532e8125e065df1277a3d5&req=dSEgHsl5nYNWWfMW1HO4zUhq%2F9tEAw18LsKakNF2d83Nd%2FeYhN6zu0JE31Pv%0ATNAp4dfWxVOMbVgS7zk%3D%0A)

In an **incognito tab or after clearing your browsers cache** navigate back to the site

Preform the original search Location = "**Mount-Royal, QC**" Country = "**Canada**"

You will now see the location added for that City Territory:

[![](https://storage.crisp.chat/users/helpdesk/website/-/6/f/2/f/6f2f993cb2d85800/077a64c1-1052-4d24-907a-c9c510_8l1zkt.png)](https://downloads.intercomcdn.com/i/o/1178173029/95a52247aa9f03b07e2650d4/image.png?expires=1794513600&signature=c6c8484a77d77fa482adeae6955dc33fcb8901507f426d4b9ff98bdb1ffc166b&req=dSEgHsh5noFdUPMW1HO4za0BwzLxgB9KJI47ap9CCYbXoPEGXMpstxypqh0u%0A59ucCqV9dD6%2FMtoovJM%3D%0A)