---
title: LocationSearchNear type | Wartiva GraphQL API
description: Supplied input for a LocationSearch of type NEAR_SPHERE. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/location-search-near.html
updated: 2026-10-07
---

Location · GraphQL type

# `LocationSearchNear` type

Supplied input for a LocationSearch of type NEAR_SPHERE. Specifies the input for a geospatial query for objects that are near a point on a two-dimensional sphere.

## Fields

| Field Name | Description |
|---|---|
| `coordinates` - [`LocationSearchCoordinates!`](https://wartiva.com/api-docs/types/location-search-coordinates.html) | Specifies a point for which a geospatial query returns the objects that are near on a two-dimensional sphere. |
| `minDistance` - [`Int`](https://wartiva.com/api-docs/types/int.html) | The optional minDistance limits the results to those objects that are at least the specified distance in meters from the center point coordinates. |
| `maxDistance` - [`Int`](https://wartiva.com/api-docs/types/int.html) | The optional maxDistance limits the results to those objects that are within a maximum distance in meters from the center point coordinates. |

## Used by

- [`LocationFilter`](https://wartiva.com/api-docs/types/location-filter.html) type: The LocationFilterInput that was used in a SearchJob.

## Example

### Example

```json
{
  "coordinates": LocationSearchCoordinates,
  "minDistance": 987,
  "maxDistance": 987
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
