# Multiple Locations

*Optional. Available from version 1.12.*

Most jobs only need one location. For the occasional job that's open in several places, you can list extra locations on the same job instead of creating a separate job for each one.

## How it works

Every job has one **primary location** in `position.location`. Add more in `position.additional_locations`.

```text
"position": {
  "title": "Senior Software Engineer",
  "location": {
    "country": "US",
    "state": "US-CA",
    "city": "San Ramon",
    "zip": "94583"
  },
  "additional_locations": [
    { "country": "US", "state": "US-TX", "city": "Austin", "postal_code": "78701", "priority": 1 },
    { "country": "GB", "state": "GB-LND", "city": "London", "postal_code": "EC2V 7HH", "priority": 2 }
  ]
}
```

## Board limits and priority

Boards handle multiple locations differently:

-   **Boards that support multiple locations** get as many as they allow.
-   **Boards that don't** get the primary location only.

When a job has more locations than a board allows, eQuest decides what to send like this:

1.  The **primary location** is always sent, and it counts toward the board's limit.
2.  The remaining spots are filled with additional locations, lowest `priority` number first (1 is the most important).
3.  If `priority` is missing, or two locations share a number, the order in the request is used.
4.  Anything left over is dropped **for that board only**. Other boards still get it.

### Example

A job has a primary location and 8 additional locations, and LinkedIn allows 7 locations per job. LinkedIn gets the primary location plus the additional locations with priority 1 through 6. Locations 7 and 8 are left off LinkedIn, but still go to boards with higher limits.

## Field differences

The primary location and additional locations use slightly different field names for the postal code:

|   | Primary location | Additional locations |
| --- | --- | --- |
| Postal code field | `zip` | `postal_code` |
| Priority | Not used (always included) | `priority` |

Postal codes are always text. They can include letters and spaces, like `EC2V 7HH` or `M5V 2T6`.

## Locations in translations

If the job has translations in `additional_languages`, each translation can have its own `additional_locations`. Leave it out to use the main job's locations.

## Valid location codes

Use two-letter ISO country codes (`US`, `GB`) and full ISO subdivision codes with the country prefix (`US-TX`, `GB-LND`). Search for any code in the [Location Code Lookup](https://tools.equest.com/), or download the full list from [Supported Locations](https://connect.equest.com/joblauncher-api/docs/supported-locations).
