FreeGeoIP is a popular solution for geo location. It provides a public HTTP API for geolocation search, based on the IP addresses. By default, it supports up to 15,000 queries per hour. Based on the retrieved IP address, you are provided with informations foe the user’s country, region, city, latitude and longtitude, area code, metro code and time zone
The integration with the Nemesis platform is pretty straight-forward. Upon adding the module in the classpath,
<dependency> <groupId>io.nemesis.platform.module.geolocation</groupId> <artifactId>nemesis-module-freegeoiplocation</artifactId> </dependency>
you will have access to several new properties you can use to customize its behaviour.
All of them are located under the
nemesis.geolocation.freegeoip domain. Please consult the freegeoip documentation on what they mean and how to use them.