H3 Location API
Geo-spatial query and anchor location API.
1. Overview
Resolves geographic clusters using the Uber H3 indexing system allowing agents to process data relative to their physical proximity constraints.
2. Use Cases
- Connecting AI agents to local DePIN nodes (e.g. Hivemapper).
- Sourcing regional weather or local business data contextually.
3. Pricing
- Price: $0.0002 per call (base)
- Min Lock: $8 / project
- Discounts: Scales down to $0.00010 for >20M monthly calls.
4. API
GET /v1/routing/anchors
Headers: Authorization: Bearer sk_...
Params: ?lat=37.77&lon=-122.41&resolution=5
Response Schema:
{
"ok": true,
"cellId": "85283473fffffff",
"anchors": [...]
}
5. Examples
Curl Snippet:
curl "https://opacus.xyz/api/v1/routing/anchors?lat=37.77&lon=-122.41&resolution=5" -H "Authorization: Bearer sk_test"
6. Errors
400 BAD_REQUEST on invalid coordinates.
7. Best Practices
Resolution level 5 translates to a ~8.5km radius. Do not use very high resolutions (level 10+) unless necessary, to ensure valid anchor matches.