{"uid":"cap_GMGZReTfU3guoqkHT8hID","slug":"agents-openwebninja-com-calculate-grid-coordinate-points-a207832b","name":"Calculate Grid Coordinate Points","description":"Get all grid coordinate points based on a center geocoordinate point and distance arguments.","url":"https://agents.openwebninja.com/local-rank-tracker/calculate-grid-coordinates?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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`"}}},"responseSchema":{"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"}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"unknown","displayCostAsset":"USD","priceDynamic":true,"priceHint":null,"priceStatus":"unprobed","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"unknown","summary":"price unknown","primary":{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_itRrAfSAvxg9VXLNrSqoe","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"unknown","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.openwebninja.com","brandSlug":"agents-openwebninja-com-x402","brandBaseUrl":"https://agents.openwebninja.com","brandDocsUrl":null,"whatItDoes":"Generates all lat/lng coordinate points for a grid of a specified size centered on a given geographic coordinate, with configurable spacing between points.","exampleAgentPrompt":"Generate a 5x5 grid of coordinate points centered on latitude 37.341759, longitude -121.938314, with 1 kilometer spacing between each point.","exampleUseCases":[{"title":"Local SEO rank grid for business","prompt":"I want to track how my business ranks in Google Maps across a neighborhood — can you calculate a 7x7 grid of coordinate points centered on 40.7128, -74.0060 with 0.5 km spacing between each point so I can check rankings at each location?"},{"title":"Competitor coverage map scan","prompt":"I need to scan a competitor's local search presence across a city block — give me all the coordinate points for a 5x5 grid centered on latitude 34.0522, longitude -118.2437, with each point spaced 1 mile apart."},{"title":"Local search visibility heat map","prompt":"Can you build me a 9x9 coordinate grid centered on 51.5074, -0.1278 with 2 km between points? I want to map out local search visibility across a wide area of London."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T00:36:09.591Z","isFirstParty":false,"canonicalSlug":"agents-openwebninja-com-calculate-grid-coordinate-points-a207832b"}