

Writefln( "longitude: %f ", results.longitude) Writefln( "latitude: %f ", results.latitude) Writeln( "country_short: ", untry_short) Ip2location ip2loc = new ip2location(db) Īuto results = ip2loc.get_all( "8.8.8.8 ")

String db = "./IPV6-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-ADDRESSTYPE-CATEGORY.BIN " Returns the geolocation information in an object. Methodsīelow are the methods supported in this library. Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses. Use the IPv4 BIN file if you just need to query IPv4 addresses. IP2Location Commercial BIN Data (Comprehensive):.This library requires IP2Location BIN data file to function. If you don't have an existing API key, you can subscribe for one at the below: The paid databases are available at under Premium subscription package.Īs an alternative, this library can also call the IP2Location Web Service. Free LITE databases are available at upon registration. The database will be updated on a monthly basis for greater accuracy.
#Ip2location db3 sql query country password#
