Docs / H3 Location API

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

3. Pricing

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.