public interface IIPToLocation
| Modifier and Type | Method and Description |
|---|---|
static String |
formatIPResult(co.mindus.ip2location.GeoLocation ipResult)
Gets the IP address information formatted as with the maximum information
that could be present in the
IP2LocationSupport.Database#LITE_IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE
a.k.a. |
static String |
formatIPResult(co.mindus.ip2location.GeoLocation geo,
String equals,
String newLine,
boolean convertToValuesToHTML)
Gets the IP address information formatted as with the maximum information
that could be present in the
IP2LocationSupport.Database#LITE_IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE
a.k.a. |
static co.mindus.ip2location.GeoLocation |
queryLocationInfo(HttpSession session)
Gets the GeoLocation information from the requestor's internet IP address.
|
static co.mindus.ip2location.GeoLocation |
queryLocationInfo(InetAddress inetAddress)
Gets the GeoLocation information from the requestor's internet IP address.
|
static co.mindus.ip2location.GeoLocation |
queryLocationInfo(String ipAddress)
Gets the GeoLocation information from the specified IP address string.
|
static co.mindus.ip2location.GeoLocation queryLocationInfo(HttpSession session)
session - The current HTTP session.GeoLocation instance for the ipAddress,
or null if not supported, enabled or disposed of.static co.mindus.ip2location.GeoLocation queryLocationInfo(InetAddress inetAddress)
inetAddress - The internet address in IPv4 or IPv6 form.GeoLocation instance for the ipAddress,
or null if not supported, enabled or disposed of.static co.mindus.ip2location.GeoLocation queryLocationInfo(String ipAddress)
ipAddress - The IP address string.IPResult instance for the ipAddress,
or null if not supported, enabled or disposed of.static String formatIPResult(co.mindus.ip2location.GeoLocation ipResult)
IP2LocationSupport.Database#LITE_IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE
a.k.a. "DB11" IP2Location database.ipResult - The result, if not null, presented in the form
(when each value is non-null and not empty),
each variable is delimited by the New Line character:
null if ipResult is null.static String formatIPResult(co.mindus.ip2location.GeoLocation geo, String equals, String newLine, boolean convertToValuesToHTML)
IP2LocationSupport.Database#LITE_IP_COUNTRY_REGION_CITY_LATITUDE_LONGITUDE_ZIPCODE_TIMEZONE
a.k.a. "DB11" IP2Location database.ipResult - The result, if not null, presented in the form
(when each value is non-null and not empty),
each variable is delimited by the New Line character:
equals - The string separating e.g. Country and the Value, e.g. " = ".newLine - The new line string, e.g. "\n" or "<br>".convertToValuesToHTML - Converts all values to HTML text.null if ipResult is null.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.