Get country name using API

Would be great to add a feature where i can use the piwik API to get what country a user is coming from based on ip address:

Example:

$url = “http://analytics.com/”;
$url .= “?module=API&method=Actions.getCountry”;
$url .= "&userIP=192.11.111.11;

$fetched = file_get_contents($url)

This would return United States

Thanks for the suggestion. It would be great to have such thing indeed. Please create a ticket on dev.piwik.org