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

Location · GraphQL input

# `LocationSearchWithinPolygonInput` input

Input for a LocationSearch of type WITHIN_POLYGON. Specifies the input for a geospatial query for objects bounded by a single closed linear ring polygon on a two-dimensional sphere.

## Fields

| Input Field | Description |
|---|---|
| `coordinates` - [`[LocationSearchCoordinatesInput!]!`](https://wartiva.com/api-docs/types/location-search-coordinates-input.html) | The closed line string coordinates specifying the polygon boundaries. The array must contain at least four coordinate pairs and the first and last coordinates must match in order to close the polygon. |

## 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]}

```

---

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