> For the complete documentation index, see [llms.txt](https://docs.systemsx.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.systemsx.co.uk/geo/common-decode.md).

# Common - Decode

## Decode GeoHash to Lat/Lng

<mark style="color:green;">`POST`</mark> `/api/common`

Returns the Lat/Lng from a GeoHash based on the precision of the GeoHash.

**Body**

| Param     | Value/Type | Description |
| --------- | ---------- | ----------- |
| function  | 'decode'   | Static      |
| geo\_hash | string     |             |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "latitude": float,
  "longitude": float
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Error Message Here"
}
```

{% endtab %}
{% endtabs %}
