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.

Syntax

native geoip_region_code(const ip[], result[], len)

Usage

ip The IP address to look up.
result The result of the geoip look up.
len The maximum length of the result buffer.

Return

The result length on successful lookup, 0 otherwise.

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