public function GeoLocatorInterface::geolocate in GeoIP API 8.2
Performs geolocation on an address.
Parameters
string $ip_address: The IP address to geolocate.
Return value
string The geolocated country code, or NULL if not found.
2 methods override GeoLocatorInterface::geolocate()
- Cdn::geolocate in src/
Plugin/ GeoLocator/ Cdn.php - Performs geolocation on an address.
- Local::geolocate in src/
Plugin/ GeoLocator/ Local.php - Performs geolocation on an address.
File
- src/
Plugin/ GeoLocator/ GeoLocatorInterface.php, line 43
Class
- GeoLocatorInterface
- Interface GeoLocatorInterface.
Namespace
Drupal\geoip\Plugin\GeoLocatorCode
public function geolocate($ip_address);