> ## Documentation Index
> Fetch the complete documentation index at: https://help.voxdash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Codes VoxDash Accepts for Maps

> Which codes and names a map variable can use, and where to download them for each map.

When you add a map to your survey, VoxDash matches each value of your map variable to a region of the map. Use any of the codes or names below and the regions are matched for you.

## Download a map's codes

Each map has an Excel file that lists its regions and their codes. You can get it in two places:

* **Geographies page:** open [Geographies](https://www.voxdash.com/geos), choose a geography, and download the region data of the map you need.
* **Data Provider Panel:** open **Maps**, click the menu (⋮) on the map, choose **View Geography Regions**, then **Export**.

Copy the values from one column of the file into the value labels of your variable.

## What you can use

| Column in the file | Example | Works for |
| - | - | - |
| Region Name | `California` | Nearly every region. The name shown on the map works too. |
| Map Code | `US.CA`, `US.NY` | Every region |
| ISO 3166-2 | `US-CA`, `US-NY`, `US-TX` | States, provinces and other subdivisions that have a code in the file |
| ISO 3166-1 alpha-2 | `US` | Countries and territories |
| ISO 3166-1 alpha-3 | `USA` | Countries and territories |
| ISO 3166-1 numeric | `840` | Countries and territories |
| UN M.49 | `840` | Countries and world areas |
| GeoNames ID | `5332921` | Regions that have an ID in the file |
| Existing Alternate Names | Any name listed | Shared names, and names saved by the organization that owns the data project |

**The map code is the most reliable choice:** it points at exactly one region. A few names are shared by two regions of a map. VoxDash then asks you which one you mean, or takes the region that shows that name on the map.

A signed-in download can also list names saved by your other organizations. Those don't apply to this data project.

> [!WARNING]
>
> Don't use the **GeoNameId** column. It is VoxDash's own row number for the region, used when you [import alternate names](https://help.voxdash.com/Import-Export/Map-Region-Names-Import-Export.md), and values aren't matched against it. The column for the public GeoNames database is **GeoNames ID**.

A country code in a state or province row, such as `US` on a map of US states, identifies the country and not that row, so it isn't matched there.

## How to put codes in your file

* **Use a numeric variable with value labels.** VoxDash matches the label text, or the number behind it. The variable needs value labels.
* **Text variables work differently.** VoxDash matches the stored text itself, not its label, so the text must be one of the codes or names.
* **Write the code exactly.** Capital letters and spaces count: `US-CA` matches, `us-ca` doesn't.
* **Keep the zeros of three-digit codes.** For American Samoa, write `016` as the label; the number `16` doesn't match it.

For example, in SPSS syntax:

```spss theme={null}
VALUE LABELS state 1 'US-CA' 2 'US-NY' 3 'US-TX'.
EXECUTE.
```

To have VoxDash add the map as well when you upload the file, name the variable after the map, for example `Map_United_States_of_America`. See [Preparing Your SPSS File for VoxDash](https://help.voxdash.com/Survey-&-Data-Entry/Working-with-SPSS-Files.md).

## When a value isn't matched

VoxDash lists the unmatched values and asks you to choose the region, or **“Don’t Map”** for answers that aren't places. This happens when:

* the value is spelled differently from every code and name of the map;
* the value fits more than one region of the map;
* it is an ISO 3166-2 code of a region that has two codes, such as a province combined with the city of the same name. Use its name or map code instead.

In a numeric variable, values your file declares as missing are skipped.

Regions you choose by hand are saved for your organization, so you don't have to choose them again. **“Don’t Map”** choices aren't saved. See [VoxDash remembers your matches](https://help.voxdash.com/Survey-&-Data-Entry/Survey-Variable-Mapping.md#voxdash-remembers-your-matches).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.