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_addrIP address to look up
Return value
RECORDGeoIP 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 cityCity
STRING country_codeCountry code (ISO 2 letter code)
STRING country_nameCountry name (as stored in GeoIP database)
FLOAT latitudeLatitude
FLOAT longitudeLongitude
STRING postal_codePostal code/zip
STRING region_codeRegional code (eg province, state)
STRING region_nameRegional name (ast store din GeoIP database)