wmGeolocation is a simple Joomla plugin to help determine and expose the users geolocation using their IP address.
This plugin can be accessed from anywhere using the following code:
$geolocation = Factory::getApplication()->get('wmGeolocation');
// Get the ISO code for the users country
$geolocation->getCountryIsoCode();
- Download and install from the
Extensions > Manage > Install
page of joomla.
joomla, plugin, geoip, geolocation