GeoIP Function for Hive