Enonic Market Enonic Market
GeoIP Lib icon

GeoIP Lib

Get location information from IPv4 or IPv6 addresses.

This Enonic XP library uses the GeoLite2 database from MaxMind to return location information for a supplied IP address. The location information includes city name, region, country, continent, ISO codes, timezone, latitude and longitude and more.

The GeoLite2_City.mmdb database must be downloaded from the MaxMind website and placed in the XP installation's $XP_HOME/config folder. See the documentation for details.

Releases

  1. 1.0.1

    • Removed unused libraries.
    • Compatibility:
      • 6.5.1
  2. 1.0.0

    • First public release
    • Compatibility:
      • 6.5.1

Comments

Download GeoIP Lib

An XP library is normally included in your application through the Gradle build script like this:

dependencies {
    include 'com.enonic.lib:geoip:1.0.1'
}

Download the source code for GeoIP Lib

Documentation for GeoIP Lib