API C Map.GetPlayerMapPosition

Returns the location of the unit on a map.
 position = C_Map.GetPlayerMapPosition(uiMapID, unitToken)
==Arguments==
:;uiMapID: : UiMapID
:;unitToken: : UnitId
==Returns==
:;position:
==Example==
Prints the current map coords for the player.
local map = C_Map.GetBestMapForUnit("player")
local position = C_Map.GetPlayerMapPosition(map, "player")
print(position:GetXY()) -- 0.54766619205475, 0.54863452911377
==Patch changes==
==See also==
* WoWInterface: C_Map.GetPlayerMapPosition Memory Usage