---
title: "GeoData"
slug: "cloud-sdk-search-geodata"
abstract: "The GeoData interface represents geographical information for a search request."
---
# GeoData

|     |     |
| --- | --- |
| Type | Interface |
| Import path | `@sitecore-cloudsdk/search/browser` |

Geographical data about the search request.

## Signature

```typescript
export interface GeoData {
  ip?: string;
  location?: LocationData;
}
```

## Properties

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| `ip` | `string` | Optional.<br><br>The IP address of the site visitor's device.<br><br>If unset, Sitecore Search first tries to get the IP address from the `X-Forwarded-For` request header. If the request does not have an `X-Forwarded-For` header, Sitecore Search uses the request's IP address. | `"86.0.2.1"` |
| `location` | [`LocationData`](https://doc.sitecore.com/sdk/en/developers/005/cloud-sdk/cloud-sdk-reference/cloud-sdk-search/cloud-sdk-search-browser/interfaces/cloud-sdk-search-locationdata.html "LocationData") | Optional.<br><br>The geographical coordinates of the location where the site visitor made the search request.<br><br>In [context](https://doc.sitecore.com/sdk/en/developers/005/cloud-sdk/cloud-sdk-reference/cloud-sdk-search/cloud-sdk-search-browser/interfaces/cloud-sdk-search-contextdata.html "ContextData"), `location` represents the site visitor's current location.<br><br>Used for returning search results relevant to the site visitor's current location, such as a list of nearby stores. | N/A |