Catalog/maps-plus-code

Maps

Open Location Code (Plus Code) encode / decode API

Encode a lat/lon to a Google Open Location Code (Plus Code) at a chosen length, or decode a code to its bounding box, center and resolution — a faithful implementation of the OLC base-20 pair + grid-refinement algorithm an LLM cannot reproduce. Answers 'what is the Plus Code for these coordinates', 'decode this Plus Code', 'Open Location Code for the Eiffel Tower', 'bounding box of 8FW4V75V+9Q'.

Price$0.01per request
MethodPOST
Route/v1/maps/plus-code
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
mapsplus-codeolcopen-location-codegeocodegeospatialcoordinatesgoogle
API URLhttps://x402.hexl.dev/v1/maps/plus-code
Integration docs
Example request
{
  "op": "encode",
  "latitude": 48.8584,
  "longitude": 2.2945,
  "codeLength": 10
}
Example response
{
  "op": "encode",
  "latitude": 48.8584,
  "longitude": 2.2945,
  "codeLength": 10,
  "code": "8FW4V75V+9Q",
  "resolutionDegrees": 0.000125
}
Input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "op": {
      "type": "string",
      "enum": [
        "encode",
        "decode"
      ],
      "examples": [
        "encode"
      ]
    },
    "latitude": {
      "type": "number",
      "examples": [
        48.8584
      ]
    },
    "longitude": {
      "type": "number",
      "examples": [
        2.2945
      ]
    },
    "codeLength": {
      "type": "integer",
      "examples": [
        10
      ]
    },
    "code": {
      "type": "string",
      "examples": [
        "8FW4V75V+9Q"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}