CountryCodeFromIP

Description

Extracts the country code (ISO-3166-1 alpha2) from a given IPv4 string (dot-decimal notation).

Syntax

CountryCodeFromIP(ipaddress)

Examples

CountryCodeFromIP('69.59.196.211') returns 'US'

Notes

CountryCodeFromIP uses Maxmind for extracting the country code.

Return value datatype

String

Impact of null value

If input is null, returns null.


Feedback and Knowledge Base