ip-geolocation

IP geolocation translater

License

License

The Artistic License 2.0
Categories

Categories

Geo Business Logic Libraries Geospatial
GroupId

GroupId

com.wealoha
ArtifactId

ArtifactId

ip-geolocation
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

ip-geolocation
IP geolocation translater
Project URL

Project URL

https://github.com/aloha-app/ip-geolocation
Source Code Management

Source Code Management

https://github.com/aloha-app/ip-geolocation.git

Download ip-geolocation

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.3
ch.qos.logback : logback-classic jar 1.1.2
org.slf4j : slf4j-api jar 1.7.10

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.1.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

ip-geolocation

IP to country convert helper, data by https://db-ip.com/db/

<dependency>
    <groupId>com.wealoha</groupId>
    <artifactId>ip-geolocation</artifactId>
    <version>1.0.0</version>
</dependency>
String xForwardedFor = request.getHeader('X-Forwarded-For');
String ip = getIpFromXForwardedFor(xForwardedFor);
String country = IpCountryHelper.getCountry(ip);

Copyright

IP to country database by db-ip.com. Copyright © 2015 db-ip.com, all rights reserved.

com.wealoha

Finka

The developer team of App Aloha.

Versions

Version
1.0.0