---
title: LocationSearchNearInput input | Wartiva GraphQL API
description: 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.
url: https://wartiva.com/api-docs/types/location-search-near-input.html
updated: 2026-10-07
---

Location · GraphQL input

# `LocationSearchNearInput` input

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

| Input Field | Description |
|---|---|
| `coordinates` - [`LocationSearchCoordinatesInput!`](https://wartiva.com/api-docs/types/location-search-coordinates-input.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

- [`LocationFilterInput`](https://wartiva.com/api-docs/types/location-filter-input.html) input: Location search input is used to limit a search by objects near a point or within geometrical bounds on a two-dimensional sphere.

## Example

### Example

```json
{
  "coordinates": LocationSearchCoordinatesInput,
  "minDistance": 123,
  "maxDistance": 123
}

```

---

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