modqert.blogg.se

Ip2location bin database
Ip2location bin database













ip2location bin database
  1. #Ip2location bin database how to
  2. #Ip2location bin database code
  3. #Ip2location bin database download
  4. #Ip2location bin database free

My $dbversion = $obj->get_database_version() Print STDERR Geo::IP2Location::get_last_error_message() My $obj = Geo::IP2Location->open("IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-ADDRESSTYPE-CATEGORY.BIN") Please visit IP2Location Database for more information. It supports both IPv4 and IPv6 addressing.

ip2location bin database

#Ip2location bin database code

  • Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.Geo::IP2Location - Lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code and station, MCC, MNC, mobile carrier brand name, elevation, usage type, IP address type and advertising category by using IP address.
  • Use the IPv4 BIN file if you just need to query IPv4 addresses.
  • #Ip2location bin database free

    You can also sign up for IP2Location Web Service to get one free API key.

    ip2location bin database

    #Ip2location bin database download

    You are recommended to visit the above links to download the latest BIN database.įor the BIN database update, you can just rename the downloaded BIN database to IP2LOCATION-DB.BIN and replace the copy in application/libraries/ip2location/ (if you didn't change the default IP2LOCATION_DATABASE constant as described in the Usage section).

  • IP2Location Commercial BIN Data (Comprehensive): Īn outdated BIN database was provided in this release for your testing.
  • This module requires IP2Location BIN data file or IP2Location API key to function. Use following codes in your application for get IPTools class information. (optional) Define Translation information. Refer to for the list of available addons. (optional) Define extra information in addition to the above-selected package. (optional) Define to use https or http. (required) Define IP2Location Web service package of different granularity of return information. (required) Define IP2Location API key.ĭefine('IP2LOCATION_API_KEY', 'your_api_key') Use following codes in your application for get geolocation information. $addressType = $ipl->getAddressType($ip) $mobileCarrierName = $ipl->getMobileCarrierName($ip) $weatherStationName = $ipl->getWeatherStationName($ip) $weatherStationCode = $ipl->getWeatherStationCode($ip) $countryName = $ipl->getCountryName($ip) $countr圜ode = $ipl->getCountr圜ode('8.8.8.8') īelow are the methods supported for BIN data file lookup. By default, the IP2LOCATION_DATABASE is pointed to *application/libraries/ip2location/IP2LOCATION-DB.BIN* if you choose not to change the original settings.ĭefine('IP2LOCATION_DATABASE', '/path/to/ip2location/database') (optional) Define IP2Location database path. You may run the sample code by using /index.php/ip2location_test. Sample codes are given in this project, under controllers folder.

    #Ip2location bin database how to

    This section will explain how to use this extension to query from BIN database and web service. This module is able to query the IP address information from either BIN database or web service. Upload controllers and libraries to CodeIgniter application folder. It supports both the IPv4 and IPv6 address. This module enables users to retrieve below geolocation information from an IP address.















    Ip2location bin database