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!]! 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 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

{"coordinates": [LocationSearchCoordinatesInput]}