AMXX-BG.INFO geoip.inc

geoip

Browse all symbols documented inside this include file.

Constants

Name Description
_geoip_included
SYSTEM_METRIC Calculate the distance between geographical coordinates, latitude and longitude.
SYSTEM_IMPERIAL = 1

Functions

Name Description
geoip_code2_ex Look up the two character country code for a given IP address. e.g: "US", "CA", etc.
geoip_code3_ex Look up the three character country code for a given IP address. e.g: "USA", "cAN", etc.
geoip_code2 Lookup the two character country code for a given IP address. Sets the buffer to "error" on an unsuccessful lookup.
geoip_code3 Lookup the three character country code for a given IP address. Sets the buffer to "error" on an unsuccessful lookup.
geoip_country Lookup the full country name for the given IP address. Sets the buffer to "error" on an unsuccessful lookup.
geoip_country_ex Lookup the full country name for the given IP address.
geoip_city Look up the full city name for the given IP address.
geoip_region_code Look up the region/state code for the given IP address. e.g. "US-OH", "DE-HH", IT-82, "FR-U", etc.
geoip_region_name Look up the full region/state name for the given IP address.
geoip_timezone Look up the full time zone for the given IP address. e.g. America/Los_Angeles, Europe/Paris.
geoip_latitude Look up the city's latitude for the given IP address.
geoip_longitude Look up the city's longitude for the given IP address.
geoip_distance
geoip_continent_code
geoip_continent_name Look up the full continent name for the given IP address.

Enums

Name Description
Continent Look up the continent code for a given IP address.