# C_AreaPoiInfo: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_AreaPoiInfo

## Functions

### C_AreaPoiInfo.GetAreaPOIForMap

```lua
areaPoiIDs = C_AreaPoiInfo.GetAreaPOIForMap(uiMapID)
```

Arguments:
- `uiMapID`: number

Returns:
- `areaPoiIDs`: number[]

### C_AreaPoiInfo.GetAreaPOIInfo

```lua
poiInfo = C_AreaPoiInfo.GetAreaPOIInfo([uiMapID], areaPoiID)
```

May return nothing.

Arguments:
- `uiMapID`: number, may be nil
- `areaPoiID`: number

Returns:
- `poiInfo`: AreaPOIInfo

### C_AreaPoiInfo.GetAreaPOISecondsLeft

```lua
secondsLeft = C_AreaPoiInfo.GetAreaPOISecondsLeft(areaPoiID)
```

Returns the number of seconds until the POI expires.

May return nothing.

Arguments:
- `areaPoiID`: number

Returns:
- `secondsLeft`: number

### C_AreaPoiInfo.GetDelvesForMap

```lua
areaPoiIDs = C_AreaPoiInfo.GetDelvesForMap(uiMapID)
```

Returns all area POIInfos flagged as delves for the given map.

Arguments:
- `uiMapID`: number

Returns:
- `areaPoiIDs`: number[]

### C_AreaPoiInfo.GetDragonridingRacesForMap

```lua
areaPoiIDs = C_AreaPoiInfo.GetDragonridingRacesForMap(uiMapID)
```

Returns all area POIInfos flagged as dragonriding races for the given map.

Arguments:
- `uiMapID`: number

Returns:
- `areaPoiIDs`: number[]

### C_AreaPoiInfo.GetEventsForMap

```lua
areaPoiIDs = C_AreaPoiInfo.GetEventsForMap(uiMapID)
```

Returns all area POIInfos flagged as events for the given map.

Arguments:
- `uiMapID`: number

Returns:
- `areaPoiIDs`: number[]

### C_AreaPoiInfo.GetQuestHubsForMap

```lua
areaPoiIDs = C_AreaPoiInfo.GetQuestHubsForMap(uiMapID)
```

Returns all area POIInfos flagged as quest hubs for the given map.

Arguments:
- `uiMapID`: number

Returns:
- `areaPoiIDs`: number[]

### C_AreaPoiInfo.IsAreaPOITimed

```lua
isTimed, hideTimerInTooltip = C_AreaPoiInfo.IsAreaPOITimed(areaPoiID)
```

This statically determines if the POI is timed, GetAreaPOITimeLeft retrieves the value from the server and may return nothing for long intervals

Arguments:
- `areaPoiID`: number

Returns:
- `isTimed`: bool
- `hideTimerInTooltip`: bool, may be nil

## Events

### AREA_POIS_UPDATED

No payload.

## Tables

### AreaPOIInfo (structure)

- `areaPoiID`: number
- `position`: vector2
- `name`: cstring
- `description`: cstring, may be nil
- `linkedUiMapID`: number, may be nil
- `textureIndex`: number, may be nil
- `tooltipWidgetSet`: number, may be nil
- `iconWidgetSet`: number, may be nil
- `atlasName`: string, may be nil
- `uiTextureKit`: textureKit, may be nil
- `shouldGlow`: bool
- `factionID`: number, may be nil
- `isPrimaryMapForPOI`: bool
- `isAlwaysOnFlightmap`: bool
- `addPaddingAboveTooltipWidgets`: bool, may be nil
- `highlightWorldQuestsOnHover`: bool
- `highlightVignettesOnHover`: bool
- `isCurrentEvent`: bool
- `isSuppressible`: bool
- `isLocked`: bool, default false

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
