Geometry primitivesFree
hex_neighbors
Elenca tutte le celle H3 entro ring k da una cella input, includendo il centroide (lat, lon) di ciascuna. Si accoppia naturalmente a density_grid per espansione spaziale ring-based in feature engineering batch.
Use cases
- Espandi una singola cella H3 nel suo k-ring di vicinato per feature ring-aggregate.
- Costruisci una query “celle attorno a me” per una UI hex-based.
- Pre-calcolo di bin spaziali attorno a una location candidata per clustering.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| h3_cell | string | required | 15- or 16-char H3 hex id. |
| ring | integer | optional | Ring distance. Range 0 – 10. Default 1. |
Example request
curl
bash
curl -X POST https://mcp.qubitdata.it/mcp \
-H "Authorization: Bearer $QUBITDATA_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "hex_neighbors",
"arguments": {
"h3_cell": "891fb466357ffff",
"ring": 2
}
}
}'
Example response
JSON-RPC 2.0 result
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "[\n { \"h3_cell\": \"891fb466357ffff\", \"lat\": 45.4641, \"lon\": 9.1903, \"ring\": 0 },\n { \"h3_cell\": \"891fb466353ffff\", \"lat\": 45.4658, \"lon\": 9.1888, \"ring\": 1 }\n]"
}
]
}
}
Prompt da provare
Incollali in Claude Desktop, Cursor o un qualsiasi client MCP collegato a https://mcp.qubitdata.it/mcp.
-
Claude Desktop
Dammi tutte le celle H3 in ring 2 di 891fb466357ffff.
-
Cursor
Espandi ogni cella del mio risultato density_grid via hex_neighbors(ring=1) per feature ring.
-
Client MCP custom
Costruisci uno snapshot di vicinato hex per feature engineering batch.
Related tools
Get started
Registrati per una free key e richiama il tool dal tuo agente. Servono cap geografici più ampi o quota più alta? Vedi pricing.
Last updated: