This function does not added to `geoip` module because: 1) `geoip` does not supports IPv6 addresses; 2) after IPv6 support was added to `geoip` found two databases (IPv4 and IPv6) cannot be added as module config parameters; 3) ASAN reported a memory leak.
Think `geoip2` module prefered to extend then `geoip`.