get_h3_indices
Convert bounding box areas into Uber H3 hexagonal cell indices for spatial analysis. Supports multiple geometry formats and resolution levels to enable geospatial data processing.
Instructions
Get Uber H3 cell indices for a bounding box area at a target resolution. Input supports WKT, GeoJSON, ogrinfo extent, and raw coordinate strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | A text location to search for (e.g. 'San Francisco'). Requires MAPBOX_ACCESS_TOKEN env var. Either 'location' or 'bbox' MUST be provided. | |
| bbox | No | The geometry to parse. Can be a raw bounding box string ('lat1,lng1,lat2,lng2'), WKT, GeoJSON, or ogrinfo extent. Either 'location' or 'bbox' MUST be provided. | |
| resolution | Yes | The H3 resolution level, from 0 to 15. (e.g. 7) | |
| compact | No | Whether to return a compacted list of cells (mixing resolutions) to minimize response size. Defaults to false. | |
| return_geometry | No | If true, return GeoJSON FeatureCollection with hex boundary polygons in addition to cell IDs. Defaults to false. |