Punto dentro de polígono
geo-point-in-polygonVerifica si un punto está dentro de un polígono (con huecos opcionales), p. ej. zonas de entrega. Cuándo: hay que calcular coordenadas, distancias, rumbos o áreas a partir de puntos dados. No para: calcular el área y el perímetro de un polígono (geo-polygon-area). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Tests whether a point lies inside a polygon (ray casting on lon/lat, planar approximation; holes supported via additional rings), e.g. for delivery zones. When: coordinates, distances, bearings or areas have to be computed from given points. Not for: computing the area and perimeter of a polygon (geo-polygon-area). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| point | Yes | Point as {lat, lon} in decimal degrees (WGS84) (object; required). | |
| polygon | Yes | Rings: first outer, others holes; each ring is [[lon,lat],…] (array of array; required; at least 1 items; up to 100 items). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inside | No |