{"slug":"api-duoleads-com-v1-geo-pluscode-30b12c","title":"Encode coordinates as an Open Location Code (plus code) at a chosen length, or d","host":"api.duoleads.com","method":"GET","resource":"https://api.duoleads.com/v1/geo/pluscode","category":"code","description":"Encode coordinates as an Open Location Code (plus code) at a chosen length, or decode a full code back to its bounding box and centre. Also shortens a full code against a reference coordinate and recovers a shortened code given a reference, which is how plus codes are normally exchanged in text. Ret","price_listed":0.05,"price_asked":0.05,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":434,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"lat":"52.3728","lon":"4.8936"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"code":{"description":"Plus code for decode, shorten or recover.","maxLength":20,"type":"string"},"lat":{"description":"Latitude for op=encode.","maxLength":64,"pattern":"^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$","type":"string"},"length":{"default":"10","description":"Code length for op=encode: 2,4,6,8,10 (default),11,12,13,14,15.","enum":["2","4","6","8","10","11","12","13","14","15"],"maxLength":64,"type":"string"},"lon":{"description":"Longitude for op=encode.","maxLength":64,"pattern":"^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$","type":"string"},"op":{"default":"encode","description":"encode (default), decode, shorten or recover.","enum":["encode","decode","shorten","recover"],"maxLength":64,"type":"string"},"ref_lat":{"description":"Reference latitude for op=shorten/recover.","maxLength":64,"pattern":"^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$","type":"string"},"ref_lon":{"description":"Reference longitude for op=shorten/recover.","maxLength":64,"pattern":"^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$","type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"data":{"type":"object"},"meta":{"properties":{"computed_at":{"type":"string"},"deterministic":{"type":"boolean"},"disclaimer":{"type":"string"},"price_usd":{"type":"string"},"request_id":{"type":"string"},"sources":{"type":"array"}},"required":["request_id","computed_at","price_usd","deterministic","disclaimer"],"type":"object"},"ok":{"const":true,"type":"boolean"},"route":{"type":"string"},"version":{"type":"string"}},"required":["ok","route","version","data","meta"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":434,"error":null}],"description_full":"Encode coordinates as an Open Location Code (plus code) at a chosen length, or decode a full code back to its bounding box and centre. Also shortens a full code against a reference coordinate and recovers a shortened code given a reference, which is how plus codes are normally exchanged in text. Returns code length, precision in metres and validity.","last_updated":"2026-09-28T23:39:00.936Z","schemes":["exact"]}