# Calculate Grid Coordinate Points

> Calculate Grid Coordinate Points is a paid API for AI agents from agents.openwebninja.com, paid per call via MPP, price unknown, status unknown (last checked 2026-10-14).

Generates all lat/lng coordinate points for a grid of a specified size centered on a given geographic coordinate, with configurable spacing between points.

## Facts

- Endpoint: GET https://agents.openwebninja.com/local-rank-tracker/calculate-grid-coordinates?utm_source=zero.xyz
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Provider: agents.openwebninja.com
- Website: https://agents.openwebninja.com
- Canonical page: https://www.zero.xyz/c/agents-openwebninja-com-calculate-grid-coordinate-points-a207832b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GMGZReTfU3guoqkHT8hID

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agents-openwebninja-com-calculate-grid-coordinate-points-a207832b
```

Example prompt: Generate a 5x5 grid of coordinate points centered on latitude 37.341759, longitude -121.938314, with 1 kilometer spacing between each point.

## When to prefer this

Choose this endpoint when you need to programmatically generate a structured grid of geographic coordinate points for local rank tracking, local SEO audits, or geographic coverage analysis. It is ideal when you need evenly spaced lat/lng points in NxN grid patterns (3x3 up to 15x15) and want the spacing defined in kilometers or miles. Prefer this over manual coordinate calculation or general mapping APIs when working within the OpenWeb Ninja local rank tracker ecosystem.

## Known failure modes

- Missing required parameters (lat, lng, grid_size, or radius) returns an error status
- radius value outside allowed range (0.1–100) causes a validation error
- Invalid grid_size value not in the enum [3,5,7,9,11,13,15] returns an error
- Invalid radius_units value (not 'km' or 'mi') may cause incorrect distance calculation or error
- Payment/authentication failure returns 402 if credits are exhausted

## How this service works

Get all grid coordinate points based on a center geocoordinate point and distance arguments.

## Output

Returns an array of coordinate point objects, each containing a lat/lng pair and a row/column index array (rc), along with the echoed input parameters and a unique request ID. The grid is anchored at the provided center coordinate and expands outward with points spaced by the radius value in the specified units.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "lat",
  "lng",
  "grid_size",
  "radius"
 ],
 "properties": {
  "lat": {
   "type": "number",
   "default": 37.341759,
   "description": "Grid center coordinate point latitude value."
  },
  "lng": {
   "type": "number",
   "default": -121.938314,
   "description": "Grid center coordinate point longitude value."
  },
  "radius": {
   "type": "number",
   "default": 1,
   "description": "The distance between coordinate points (on the same row / column in the grid).  \n  The units of the radius are determined by the distance_units parameter.  \n  \n  **Allowed values:** `0.1-100`"
  },
  "grid_size": {
   "enum": [
    3,
    5,
    7,
    9,
    11,
    13,
    15
   ],
   "type": "number",
   "default": 3,
   "description": "The size of the grid *(i.e. 3x3, 5x5, 7x7, etc)*."
  },
  "radius_units": {
   "type": "number",
   "default": "km",
   "description": "Distance measurement units to use for the radius parameter (kilometers / miles).  \n\n  **Allowed values:** `km, mi`"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "rc": {
      "type": "array",
      "items": {
       "type": "integer",
       "description": "A list of integer values representing some data"
      }
     },
     "lat": {
      "type": "number",
      "description": "The latitude of a data point"
     },
     "lng": {
      "type": "number",
      "description": "The longitude of a data point"
     }
    }
   }
  },
  "status": {
   "type": "string",
   "description": "The status of the response"
  },
  "parameters": {
   "type": "object",
   "properties": {
    "lat": {
     "type": "string",
     "description": "The latitude used in the request"
    },
    "lng": {
     "type": "string",
     "description": "The longitude used in the request"
    },
    "radius": {
     "type": "string",
     "description": "The radius used in the request"
    },
    "grid_size": {
     "type": "string",
     "description": "The size of the grid for the response"
    },
    "radius_units": {
     "type": "string",
     "description": "The units of measurement for the radius"
    }
   }
  },
  "request_id": {
   "type": "string",
   "description": "A unique identifier for the request"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-openwebninja-com-calculate-grid-coordinate-points-a207832b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.openwebninja.com](https://www.zero.xyz/host/agents.openwebninja.com/llms.txt)
