Overview
Point in polygon check and GeoJSON geometry: point-in-polygon with correct hole handling, bounding box, centroid, signed area in square metres, perimeter length, and ring winding order for a geometry supplied in the request. Accepts Polygon and MultiPolygon, and a GeoJSON Feature wrapping either. Area and length are geodesic on the WGS-84 ellipsoid, correct at any latitude; containment is planar in lon/lat.
Protocol
x402
Price
$0.05
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
data/location
Provider
duoleads
Indexed
2026-09-29 00:13:45
Health
Status
healthy
Latency (p50)
545ms
Uptime (30d)
97.0%
Reliability Score
88.5/100
Last Checked
2026-10-31 07:02:22
Last Healthy
2026-10-31 07:02:22
Consecutive Failures
0
Input Schema
{
"method": "GET",
"queryParams": {
"geometry": "{\"type\":\"Polygon\",\"coordinates\":[[[4.85,52.35],[4.95,52.35],[4.95,52.40],[4.85,52.40],[4.85,52.35]]]}",
"lat": "52.3728",
"lon": "4.8936"
},
"type": "http"
}
Output Schema
{
"example": {
"data": {
"area_m2": 37890432.411,
"bbox": [
4.85,
52.35,
4.95,
52.4
],
"centroid": {
"lat": 52.37500000001563,
"lon": 4.900000000001667
},
"contains": true,
"on_boundary": false,
"perimeter_m": 24747.979,
"rings": 1,
"vertices": 4,
"winding": [
"ccw"
]
},
"meta": {
"computed_at": "2026-09-28T12:00:00.000Z",
"deterministic": true,
"disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
"price_usd": "0.05",
"request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
},
"ok": true,
"route": "/v1/geo/polygon",
"version": "1.0.0"
},
"type": "json"
}