GRPC based GEOIP lookup service
geoip2-city db https://dev.maxmind.com/geoip/geolite2-free-geolocation-data
db11 https://www.ip2location.com/database/db11-ip-country-region-city-latitude-longitude-zipcode-timezone
This module protobuf rpc spec and will auto generate pojo and service code
this wil be used to start lookup server and sample client example
Helper module to get schema from protobuf java object and convert into spark Row
object
Provide UDF for ip2Geolocation
spark.ip2geolocation.server.hostname=<hostname/ip>
spark.ip2geolocation.server.port=<port>
Provide UDF for ip2Geolocation
mvn clean install
#How to run
java io.github.pantomath.location.Application -DPORT=8080 \
-DMAXMIND_CITY_DB_PATH=<db path> \
-DIP2LOCATION_CITY_DB_PATH=<db path>
Other db types path optional *. MAXMIND_ISP_DB_PATH *. MAXMIND_ASN_DB_PATH *. IP2LOCATION_ISP_DB_PATH *. IP2LOCATION_DB_PATH