The result of this function will be an array. The array can store some or all of
the following information:
- Continent Code: The code of the visitor's continent.
(array key is self::CONTINENT_CODE_KEY)
- Continent Name: The name of the visitor's continent.
(array key is self::CONTINENT_NAME_KEY)
- Country Code: The code of the visitor's country.
(array key is self::COUNTRY_CODE_KEY)
- Country Name: The name of the visitor's country.
(array key is self::COUNTRY_NAME_KEY)
- Region Code: The code of the visitor's region.
(array key is self::REGION_CODE_KEY)
- Region Name: The name of the visitor's region.
(array key is self::REGION_NAME_KEY)
- City Name: The name of the visitor's city.
(array key is self::CITY_NAME_KEY)
- Area Code: The visitor's area code.
(array key is self::AREA_CODE_KEY)
- Latitude: The visitor's latitude.
(array key is self::LATITUDE_KEY)
- Longitude: The visitor's longitude.
(array key is self::LONGITUDE_KEY)
- Postal Code: The visitor's postal code.
(array key is self::POSTAL_CODE_KEY)
- ISP: The visitor's ISP.
(array key is self::ISP_KEY)
- Org: The company/organization of the visitor's IP.
(array key is self::ORG_KEY)
All LocationProviders will attempt to return the country of the visitor.
abstract public getLocation ( array $info ) : array | false | ||
$info | array | What this must contain depends on the specific provider implementation. All providers require an 'ip' key mapped to the visitor's IP address. |
리턴 | array | false |