geoip_region_code
- Синтаксис
-
native geoip_region_code(const ip[], result[], len);
Переменная | Описание |
---|---|
ip |
The IP address to look up. |
result |
The result of the geoip look up. |
len |
The maximum length of the result buffer. |
- Описание
- Look up the region/state code for the given IP address. e.g. "US-OH", "DE-HH", IT-82, "FR-U", etc.
- Пометка
-
This native requires GeoIP City database, which can be retrieved from: http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)
- Возвращает
- The result length on successful lookup, 0 otherwise.