To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
A Wrapper for the MaxMind Geo IP2 lookup
Methods
asJson(String ipAddress)
Returns: String
Runs the provided IP address through the MaxMind GeoIP2 database and returns the results as a JSON string, including fields such as country, city and location where available.
| Parameter | Description |
|---|---|
ipAddress | the IP address to look up |
asJsonObject(String ipAddress)
Returns: JSONObject
Runs the provided IP address through the MaxMind GeoIP2 database and returns the results as a parsed JSON object, including fields such as country, city and location where available.
| Parameter | Description |
|---|---|
ipAddress | the IP address to look up |