Return country while tracking

Is there a quick and clean way of returning a visitor’s location with Piwik? Since I’m already geotargetting visitors with Piwik, it just makes sense to use that data rather than a separate API for determining the user’s country from within one of my websites.

I tried searching but could not find a similar request. Thanks in advance!

We expose the IP for geolocation, click on API then see UserCountry.getLocationFromIP
and you pass it the visitor IP