{"uid":"cap_jJTvoQFXdoYp0FUupsQBx","slug":"geo-calc-plus-code-encoder-a0ad7a0e","name":"Geo Calc Plus Code Encoder","description":"Encode latitude/longitude as an Open Location Code (Plus Code) with its area bounds and a short local form.","url":"https://geo-calc.x402tookit.com/pluscode-encode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","description":"Latitude in degrees, -90 to 90"},"lon":{"type":"number","description":"Longitude in degrees, -180 to 180"},"length":{"type":"integer","description":"Code digits: 2,4,6,8,10 (default),11,12,13,14,15"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"bounds":{"type":["null","object"],"properties":{"east":{"type":["null","number"]},"west":{"type":["null","number"]},"north":{"type":["null","number"]},"south":{"type":["null","number"]}}},"length":{"type":["null","number"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"plusCode":{"type":["null","string"]},"centerLat":{"type":["null","number"]},"centerLon":{"type":["null","number"]},"shortCode":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ui6CsKr3N5JBF5CDmY2a-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a latitude/longitude coordinate pair into an Open Location Code (Plus Code), returning the code, its geographic area bounds, and a short local form.","exampleAgentPrompt":"Encode the coordinates 37.7749, -122.4194 as a Plus Code — give me the full Open Location Code, its geographic bounds, and the short local form.","exampleUseCases":[{"title":"Share a remote field location","prompt":"I need a Plus Code for coordinates 34.0522, -118.2437 so I can share this spot with someone who doesn't have what3words — give me the full OLC code and the short version."},{"title":"High-precision survey point encoding","prompt":"Encode latitude 51.5074, longitude -0.1278 as a Plus Code at maximum precision (15 digits) with the exact bounding box so I know the area it covers."},{"title":"Delivery address generation for rural areas","prompt":"What's the Plus Code for lat -33.8688, lon 151.2093? I need the full code and short form to use as a delivery address for a location that doesn't have a street address."}],"resultDescription":"Returns the full Plus Code (Open Location Code) string, a shorter local form of the code, the geographic bounding box (north, south, east, west bounds), the center latitude and longitude of the encoded cell, and the code length used.","failureModes":["Latitude out of range (-90 to 90) returns an error","Longitude out of range (-180 to 180) returns an error","Invalid code length (not in 2,4,6,8,10,11,12,13,14,15) returns an error","Missing required lat or lon parameters returns a validation error","Payment failure via x402 protocol results in 402 response"],"whenToPreferThis":"Choose this endpoint when you need to encode a lat/lon coordinate into an Open Location Code (Plus Code) with its geographic cell bounds and a short local form. Prefer it over geohash encoding when the output must be compatible with Google Plus Codes / OLC standard, or when you need the cell's bounding box alongside the code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:36:04.455Z","isFirstParty":false,"canonicalSlug":"geo-calc-plus-code-encoder-a0ad7a0e"}