---
title: "LocationData"
slug: "cloud-sdk-search-locationdata-1539471"
abstract: "The LocationData interface represents the geographical coordinates of the location where the site visitor made the search request, or the location the site visitor wants to see search results for."
---
# LocationData

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

In context: the geographical coordinates of the location where the site visitor made the search request. In filters: the location that the site visitor wants to see search results for.

## Signature

```typescript
export interface LocationData {
  latitude: number;
  longitude: number;
}
```

## Properties

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| `latitude` | `number` | Required.<br><br>The latitude of a location.<br><br>You can infer the site visitor's current location from [`Navigator.geolocation`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation).<br><br>Minimum: `-90.000000`.<br><br>Maximum: `90.000000`. | `-77.0089` |
| `longitude` | `number` | Required.<br><br>The longitude of a location.<br><br>You can infer the site visitor's current location from [`Navigator.geolocation`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation).<br><br>Minimum: `-180.000000`.<br><br>Maximum: `180.000000`. | `-120.0017` |