- #Ip2location web service free code#
- #Ip2location web service free password#
- #Ip2location web service free iso#
- #Ip2location web service free free#
* Geo targeting for increased sales and click-throughįor first time user, retrieves the IP address from the networking protocol or server-side variable of the Web server. * Compliance with export control and sanctions
#Ip2location web service free password#
* Detect and prevent password sharing or abuse of service * Redirect web pages based on visitor’s location You can build applications using IP2Location for: The solution is available as database, programming API and hosted solution.
#Ip2location web service free code#
out.IP2Location™ is a geolocation IP solution to help you to identify visitor’s geographical location such as country, region, city, latitude & longitude of city, ZIP code, time zone, connection speed, ISP, domain name, IDD country code, area code, weather station code and name, mobile carrier, elevation and usage type information. get( "country_name") != null) ? myresult. get( "country_code") != null) ? myresult. IP2LocationWebService ws = new IP2LocationWebService() Returns time zones, DST, GMT offset, sunrise and sunset. Returns metro code based on the ZIP/postal code. Returns region code, name and translations. Returns country codes, country name, flag, capital, total area, population, currency info, language info, IDD, TLD and translations. Returns continent code, name, hemispheres and translations. This method returns the web service credit balance in a JsonObject.īelow are the Addons supported in this class. IPQuery(String IPAddress, String AddOns, String Language) Query IP address and translation language. IPQuery(String IPAddress, String Language) Open(String APIKey, String Package, boolean UseSSL) } QUERY USING THE IP2LOCATION IP GEOLOCATION WEB SERVICE Methods println( "This BIN does not contain IPv6 data.") println( "Invalid database path.") Įlse if ( "IPV6_NOT_SUPPORTED". println( "Invalid IP address.") Įlse if ( "MISSING_FILE". println( "IP address cannot be blank.") Įlse if ( "INVALID_IP_ADDRESS". IPQuery( ip) Įlse if ( "EMPTY_IP_ADDRESS". this is to initialize with a byte array // Path binpath = Paths.get(binfile) // byte binFileBytes = Files.readAllBytes(binpath) // loc.Open(binFileBytes) IPResult rec = loc. this is to initialize with a BIN file loc. String binfile = "/usr/data/IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-ADDRESSTYPE-CATEGORY.BIN" The IP address does not exists in the BIN file. The BIN file path is wrong or the BIN file is unreadable. The query has been successfully performed. These categories are comprised of Tier-1 and Tier-2 (if available) level categories widely used in services like advertising, Internet security and filtering appliances. The domain category is based on IAB Tech Lab Content Taxonomy. IP address types as defined in Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6). Usage type classification of ISP or company: Name of the nearest weather observation station.Īverage height of city above sea level in meters (m). Special code to identify the nearest weather observation station. The IDD prefix to call the city from another country.Ī varying length number assigned to geographic areas for call between cities. Time zone in UTC (Coordinated Universal Time).ĭomain name associated to IP address range.
#Ip2location web service free iso#
Two-character country code based on ISO 3166. This method returns results in object.īelow are the result methods. Initialize the component with the byte array containing the BIN file data. Initialize the component and preload the BIN file. It is set to false by default.īelow are the methods supported in this class. This will increase query speed but require more memory. Set to true to enable memory mapped file feature. Jar cf ip2location.jar com/ip2location/ *.class QUERY USING THE BIN FILE Parametersīelow are the parameters to set before using this class. If you don't have an existing API key, you can subscribe for one at the below: Commercial IP2Location IP Geolocation BIN Data: Īs an alternative, this IP Geolocation Java component can also call the IP2Location Web Service.