Constants
geoip.inc
Lookup the two character country code for a given IP address. Sets the buffer to "error" on an unsuccessful lookup.
#pragma deprecated Use geoip_code2_ex() instead.
Lookup the three character country code for a given IP address. Sets the buffer to "error" on an unsuccessful lookup.
#pragma deprecated Use geoip_code3_ex() instead.
Lookup the full country name for the given IP address. Sets the buffer to "error" on an unsuccessful lookup.
#pragma deprecated Use geoip_country_ex() instead.
Calculate the distance between geographical coordinates, latitude and longitude.
SYSTEM_METRIC#define SYSTEM_METRIC 0 // kilometers
#define SYSTEM_IMPERIAL 1 // statute miles
Look up the continent code for a given IP address.
Continentenum Continent
{
CONTINENT_UNKNOWN = 0,
CONTINENT_AFRICA,
CONTINENT_ANTARCTICA,
CONTINENT_ASIA,
CONTINENT_EUROPE,
CONTINENT_NORTH_AMERICA,
CONTINENT_OCEANIA,
CONTINENT_SOUTH_AMERICA,
};