Geospatial
Point-in-bounding-box test API
Tests whether a coordinate falls inside a min/max lat-lon bounding box, correctly handling antimeridian-crossing boxes (where minLon > maxLon). Answers 'Is this point inside the bounding box?', 'Does my coordinate fall within a tile/extent that wraps the dateline?'.
Price$0.02per request
MethodPOST
Route/v1/geo/point-in-bbox
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
geogisbboxpoint-in-bboxcontainsextentantimeridiangeofencespatial-query
API URL
Integration docshttps://x402.hexl.dev/v1/geo/point-in-bboxExample request
{
"point": {
"latitude": 51.5074,
"longitude": -0.1278
},
"minLat": 51,
"minLon": -0.5,
"maxLat": 51.6,
"maxLon": 0.2
}Example response
{
"point": {
"latitude": 51.5074,
"longitude": -0.1278
},
"bbox": {
"minLat": 51,
"minLon": -0.5,
"maxLat": 51.6,
"maxLon": 0.2
},
"inside": true,
"latInRange": true,
"lonInRange": true,
"crossesAntimeridian": false,
"interpretation": "Point is inside the bounding box."
}Input schema
{
"type": "object",
"required": [
"point",
"minLat",
"minLon",
"maxLat",
"maxLon"
],
"properties": {
"point": {
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
}
},
"examples": [
{
"latitude": 51.5074,
"longitude": -0.1278
}
]
},
"minLat": {
"type": "number",
"examples": [
51
]
},
"minLon": {
"type": "number",
"examples": [
-0.5
]
},
"maxLat": {
"type": "number",
"examples": [
51.6
]
},
"maxLon": {
"type": "number",
"examples": [
0.2
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}