---
title: "Locations"
slug: "locations"
abstract: "How xDB Data Migration Tool maps location data from Sitecore 8.x to Sitecore 9."
---
# Locations

<details>
<summary><h2>Format in Sitecore 8.x</h2></summary>

In Sitecore 8.x, Location data is stored in the MongoDB collection `Locations`.

The following is an example of a Location record:

```csharp
{
    "_id" : NUUID("6ec70000-2768-c105-9fce-38a94acbb725"),
    "_t" : "LocationData",
    "BusinessName" : "The Garrison",
    "Country" : "GB",
    "Classification" : 0
}
```

</details>

<details>
<summary><h2>Format in Sitecore 9</h2></summary>

In Sitecore 9, Location data is stored as reference data.

</details>

<details>
<summary><h2>Mapping details</h2></summary>

This section describes how Location data is mapped from Sitecore 8.x to 9.

|     |     |
| --- | --- |
| Source object | Document from the GeoIps collection |
| Reference data object type | `Sitecore.Analytics.Model.LocationData,Sitecore.Analytics.Model` |
| Field mapping definition | xDB Reference Data Mappings > MongoDB Locations Document to xDB Location Data |

| Value to write to reference data object | Property on reference data object |
| --- | --- |
| `BusinessName` from source object | `BusinessName` |
| `Classification` from source object | `Classification` |
| `Country` from source object | `Country` |
| `_id` from source object | `LocationId` |

</details>