OxinionDeveloper
oxinion.geo.grid

Index the world in hexagons.

Grid uses H3 hexagonal indexing to divide space into uniform cells — enabling density analysis, coverage maps, and cell-level targeting at any resolution. Query which cell a point is in, or which cells overlap a region.

Stable
Generally Available

Simple by design

Grid uses H3 hexagonal indexing to divide space into uniform cells — enabling density analysis, coverage maps, and cell-level targeting at any resolution. Query which cell a point is in, or which cells overlap a region.

  • 01H3 resolution 0–15: city-level down to building-level cells
  • 02Uniform cell area makes density comparison accurate
  • 03Use Grid to find hot zones across your geofence coverage
Full API reference
TypeScript
1import { createOxinion } from 'oxinion';
2
3const oxinion = createOxinion({ accessToken });
4
5// Get the H3 cell for a coordinate
6const cell = await oxinion.geo.grid.cellFor({
7 lat: 43.6532,
8 lng: -79.3832,
9 resolution: 9 // ~0.1 km² cells
10});
11
12// Query all cells within a radius
13const cells = await oxinion.geo.grid.query({
14 center: { lat: 43.6532, lng: -79.3832 },
15 radiusKm: 5,
16 resolution: 9
17});
18
19console.log(`${cells.length} cells in range`);

Understand space at any scale.

Grid gives you a uniform spatial index across the entire planet. Analyze density, coverage, and patterns.