ESODecoded

GetParentZoneId

ESO Lua API function — used by 41 of the 3,030 addons we indexed (combined 34,974,861 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetParentZoneId(integer zoneId)

Returns: integer parentZoneId

Real usage — from LoreBooks

local function GetZoneMapIdFromZoneId(zoneId)
  local zoneMapZoneId = GetParentZoneId(zoneId)
  local zoneMapMapId = GetMapIdByZoneId(zoneMapZoneId)

Short excerpt from the shipping addon LoreBooksits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
LoreBooks13,090,355
LibSets (All set items ingame & preview. lua API + excel sheet)4,357,189
LibGPS4,027,526
LibMapData2,291,531
LibZone1,937,031
Item Set Browser1,893,031