Use geoip in Painless Script

Hello, please take a look here: Scripted fields to convert IP string to GeoIP? - #5 by Rahul_Kumar4