Continent

Look up the continent code for a given IP address.

Syntax

enum Continent

Usage

ip The IP address to look up.
result The result of the geoip look up.

Return

The — continent id on successful lookup, 0 otherwise.

Members

Name Value
CONTINENT_UNKNOWN 0
CONTINENT_AFRICA
CONTINENT_ANTARCTICA
CONTINENT_ASIA
CONTINENT_EUROPE
CONTINENT_NORTH_AMERICA
CONTINENT_OCEANIA
CONTINENT_SOUTH_AMERICA

Notes

This native requires GeoIP City database, which can be retrieved from:

The code can be retrieved as integer (See CONTINENT_* constants.) or string (2 characters).

Possible continent codes are AF, AN, AS, EU, NA, OC, SA for

Defined in geoip.inc at line 234 . This documentation was automatically generated from source.