Geofences

Point-in-polygon containment test

Test one or more points for containment inside a caller-supplied GeoJSON polygon (or MultiPolygon / Feature / FeatureCollection). Pure geometry — no upstream call, costs 0 quota units. Boundary points count as contained. Returns 400 when the polygon is structurally invalid.

post/v1/geofences/contains

Request

  • Base URL: https://geo.thinair.co
  • URL: https://geo.thinair.co/v1/geofences/contains
  • Auth: HTTP bearer

Request body

Response

Containment results — one boolean per input point.

resultsboolean[] required

results[i] = true when points[i] is inside the polygon (boundary counts as inside).

contained_countinteger required
point_countinteger required
warningsstring[]

Changes

No recorded changes to this operation across all 1 revision of this API.