geom_relate
Check spatial relationships between geometries: point-in-polygon, overlap, containment, adjacency, distance, nearest points. For geofence checks, territory assignment, proximity screening.
Instructions
Test the spatial relationship between two geometries.
Answers point-in-polygon, overlap, containment and adjacency in one call, plus the shortest geodesic distance between them and the nearest point on each. Use this for geofence checks ("is this vehicle inside the zone?"), territory assignment and proximity screening.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geojson_a | Yes | First geometry, as GeoJSON (object or string) or WKT. | |
| geojson_b | Yes | Second geometry, as GeoJSON (object or string) or WKT. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| distance_m | Yes | ||
| relationships | Yes | ||
| nearest_points | Yes |