You are here

public function GeoIpHandlerInterface::regionName in GeoIP API 7.2

The region name for a given IP.

This will just return the most accurate subdivision if there are multiple levels.

Parameters

string $ip: The ip to resolve.

Return value

string|FALSE The region name or FALSE on failure.

2 methods override GeoIpHandlerInterface::regionName()
GeoIpHandlerV1::regionName in src/GeoIpHandlerV1.php
The region name for a given IP.
GeoIpHandlerV2::regionName in src/GeoIpHandlerV2.php
The region name for a given IP.

File

src/GeoIpHandlerInterface.php, line 115
The GeoIP API Interface.

Class

GeoIpHandlerInterface

Namespace

Drupal\geoip

Code

public function regionName($ip = NULL);