API C Map.GetUserWaypointHyperlink

Returns a worldmap hyperlink for the currently assigned user waypoint, if one exists. hyperlink = C_Map.GetUserWaypointHyperlink

Returns

 * hyperlink : string : worldmapLink

Example
Sends any currently active waypoint to your chat. /run SendChatMessage(C_Map.GetUserWaypointHyperlink)

Sends a map pin to General chat for the target (but still uses your own location).