Grails 3 plugin which exposes a Grails service which queries the geoplugin api (http://www.geoplugin.com) given an ip address
Declare the plugin dependency in the build.gradle file, as shown here:
repositories {
...
maven { url "http://dl.bintray.com/sdelamo/plugins" }
}
dependencies {
...
compile 'org.grails.plugins:grails-geo-plugin:0.5'
}
The plugin provides the following Grails artefacts:
- GeoPluginService
Map<String, GeoPluginResponse> m = geoPluginService.findGeoPluginResponseForIpAddresses(['88.12.40.19'])
assert m['88.12.40.19'].geopluginCountryCode == 'ES'
To report any bug, please use the project Issues section on GitHub.
Feedback and pull requests are welcome!