# UAE Geocode

Resolve a UAE address or landmark to coordinates and its OpenStreetMap feature — from Burj Khalifa to a Satwa side street.

- Method: `GET`
- Path: `/v1/places/uae/geocode`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `q` | string | required | Free-text address, landmark, or point of interest. |
| `limit` | integer | optional | 1 to 25 matches. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/places/uae/geocode \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "query": "Burj Khalifa",
    "places": [
      {
        "name": "برج خليفة",
        "display_name": "برج خليفة, 1, شارع الشيخ محمد بن راشد, دبي, الإمارات العربية المتحدة",
        "category": "tourism",
        "type": "attraction",
        "osm": { "type": "way", "id": 446646206 },
        "lat": 25.1970336,
        "lon": 55.2741329,
        "importance": 0.5588,
        "boundingbox": [25.1963681, 25.1977023, 55.2734274, 55.2749989]
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-21T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-22T04:05:00.000Z"
  }
}
```