---
title: LocationSearchWithinPolygon type | Wartiva GraphQL API
description: Supplied 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.html
updated: 2026-10-07
---

Location · GraphQL type

# `LocationSearchWithinPolygon` type

Supplied 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

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

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

## Example

### Example

```json
{"coordinates": [LocationSearchCoordinates]}

```

---

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