![]() ![]() Refer to product page for available add ons. geotargeting./* Enable add ons to display more result. ![]() ![]() translations)Įnd end - geotargeting addon if result ~= nil then print( "geotargeting => metro: ". ![]() translations ~= nil then print( "city => translations => ". translations)Įnd end - city addon if result ~= nil then print( "city => name: ". translations ~= nil then print( "region => translations => ". name)Įnd - region addon if result ~= nil then print( "region => name: ". Print( "country => currency => symbol: ". translations)Įnd print( "country => currency => code: ". translations ~= nil then print( "country => translations => ". translations)Įnd end - country addon if result ~= nil then print( "country => name: ". This Lua package provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area. translations ~= nil then print( "continent => translations => ". continent addon if result ~= nil then print( "continent => name: ". response = "OK " then - standard results print( "response: ". If result = nil then print( "Error: Unknown error. Local result = ws: lookup(ip, addon, lang) Local apikey = 'YOUR_API_KEY ' local apipackage = 'WS25 ' local usessl = true local lang = 'fr ' - leave blank if no need local addon = 'continent,country,region,city,geotargeting,country_groupings,time_zone_info ' - leave blank if no need local ip = '8.8.8.8 ' local ws = ip2locationwebservice: open(apikey, apipackage, usessl) Ip2locationwebservice = require( 'ip2locationwebservice ') This method returns the web service credit balance in an object. 1 117 3. This method returns an object containing the geolocation info. QUERY USING THE IP2LOCATION WEB SERVICE Methods Local ip2loc = ip2location: new( 'IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-ADDRESSTYPE-CATEGORY-DISTRICT-ASN.BIN ') Returns the geolocation information in an object. Methodsīelow are the methods supported in this package. Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses. IP2Location Go Package This Go package provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc, mobile brand, elevation, and usage type from IP address by using IP2Location database. Use the IPv4 BIN file if you just need to query IPv4 addresses. IP2Location Commercial BIN Data (Comprehensive):.This package 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 in monthly basis for the greater accuracy. prevent password sharing and abuse of service.analyze your web server logs to determine the countries of your visitors.select the geographically closest mirror.This package can be used in many types of projects such as: It supports both IP address in IPv4 and IPv6. This database simply contains IP blocks as keys, and other information such as country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc, mobile brand, elevation, usage type, address type, IAB category, district, autonomous system number (ASN) and autonomous system (AS) as values. This package uses a file based database available at. This Lua package provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, station name, mcc, mnc, mobile brand, elevation, usage type, address type, IAB category, district, autonomous system number (ASN) and autonomous system (AS) from IP address by using IP2Location database. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |