point_in_polygon
Test if a geographic coordinate falls inside a polygon boundary. Use for geofencing, area membership checks, and spatial validation.
Instructions
Get the full administrative hierarchy for a geographic coordinate.
Returns: { country, country_code (ISO 3166-1 alpha-2), region (state/province), county, city, suburb, neighbourhood }. Not all levels are present for every location — rural coordinates may return only country and region.
USE FOR: Territory assignment, tax region detection, locale/language inference, delivery zone validation, "what country is this coordinate in?". DO NOT USE: For reverse geocoding a street address — use reverse_geocode instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude. Range: -90 to 90. | |
| lon | Yes | Longitude. Range: -180 to 180. |