Text Processing

Java implementation of text processing such as stemmers

License

License

MIT
Categories

Categories

Java Languages Geo Business Logic Libraries Geospatial
GroupId

GroupId

com.github.chen0040
ArtifactId

ArtifactId

java-geoip
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Text Processing
Java implementation of text processing such as stemmers
Project URL

Project URL

https://github.com/chen0040/java-geoip
Source Code Management

Source Code Management

https://github.com/chen0040/java-geoip

Download java-geoip

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.chen0040/java-geoip/ -->
<dependency>
    <groupId>com.github.chen0040</groupId>
    <artifactId>java-geoip</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.chen0040/java-geoip/
implementation 'com.github.chen0040:java-geoip:1.0.1'
// https://jarcasting.com/artifacts/com.github.chen0040/java-geoip/
implementation ("com.github.chen0040:java-geoip:1.0.1")
'com.github.chen0040:java-geoip:jar:1.0.1'
<dependency org="com.github.chen0040" name="java-geoip" rev="1.0.1">
  <artifact name="java-geoip" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.chen0040', module='java-geoip', version='1.0.1')
)
libraryDependencies += "com.github.chen0040" % "java-geoip" % "1.0.1"
[com.github.chen0040/java-geoip "1.0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.20
com.maxmind.geoip2 : geoip2 jar 2.5.0

test (11)

Group / Artifact Type Version
org.slf4j : slf4j-log4j12 jar 1.7.20
org.testng : testng jar 6.9.10
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3
org.assertj : assertj-core jar 3.5.2
org.powermock : powermock-core jar 1.6.5
org.powermock : powermock-api-mockito jar 1.6.5
org.powermock : powermock-module-junit4 jar 1.6.5
org.powermock : powermock-module-testng jar 1.6.5
org.mockito : mockito-core jar 2.0.2-beta
org.mockito : mockito-all jar 2.0.2-beta

Project Modules

There are no modules declared in this project.

java-geoip

A simple library for converting ip address to country

Install

Add the following dependency to your POM file:

<dependency>
  <groupId>com.github.chen0040</groupId>
  <artifactId>java-geoip</artifactId>
  <version>1.0.1</version>
</dependency>

Usage

The sample codes below shows how to use the GeoIp class in your application:

import com.github.chen0040.geoip.GeoIp;

public class Demo {
    public static void main(String[] args) {
        GeoIp geoIp = new GeoIp();
        final String ipAddress = "13.93.122.38";
        CountryResponse country = geoIp.getCountry(ipAddress);
        System.out.pritnln("Country from which ip " + ipAddress + " comes from is " + country.getCountry().getName());
    }
}

Versions

Version
1.0.1