GetGeoIPInfoForIP (open)
Look up full geoIP info for an IP address
Syntax
LOADLIB "mod::publisher/lib/analytics.whlib";
RECORD FUNCTION GetGeoIPInfoForIP(STRING ip_addr)
Parameters
STRING ip_addr
IP address to look up
Return value
RECORD
GeoIP information, if available. Please note that there's no promise of accuracy or correctness for the data, and that (country) names might differ from those returned by other APIs
STRING city
City
STRING country_code
Country code (ISO 2 letter code)
STRING country_name
Country name (as stored in GeoIP database)
FLOAT latitude
Latitude
FLOAT longitude
Longitude
STRING postal_code
Postal code/zip
STRING region_code
Regional code (eg province, state)
STRING region_name
Regional name (ast store din GeoIP database)