GeoipRegionCode Function

Gets the region code with country code from an IP address. (US-IL, CH-CHE, etc)

bool GeoipRegionCode(const char[] ip, char ccode[12])

Parameters

const char[] ip

Ip to determine the region code.

char[12] ccode

Destination string buffer to store the code.

Return Value

True on success, false otherwise.