Skip to content

sdelamo/grails-geoplugin

Repository files navigation

Grails GEOPLUGIN

Build Status Download

Introduction

Grails 3 plugin which exposes a Grails service which queries the geoplugin api (http://www.geoplugin.com) given an ip address

Installation

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'
}

Usage

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'

Bugs

To report any bug, please use the project Issues section on GitHub.

Feedback and pull requests are welcome!

About

Grails 3 plugin which exposes a Grails service which queries the geoplugin api (http://www.geoplugin.com) given an ip address

Resources

License

Stars

Watchers

Forks

Packages

No packages published