|
|
|
 |
IP2Location Ruby Library
|
 |
|
|
| IP2Location is a Ruby library that enables the user to
find the country, region, city, coordinates, zip code, ISP and domain name that
any IP address or hostname originates from. It has been optimized for speed and
memory utilization. Developers can use the API to query all IP2Location™ binary
databases for applications written in C or supporting static/dynamic library.
|
| |
|
|
|
|
| |
| |
Download - Sample .BIN Files |
|
|
|
|
| Note:The demo version of Binary (.BIN)
data file consists of IP address range from 0.0.0.0 to 99.255.255.255. The
complete Binary (.BIN) data file is available for all paid subscribers at no
extra cost. Please contact our sales department for the download information. |
| |
| |
Complete .BIN Files (Subscription Required)
|
|
|
|
|
| |
|
|
require 'IP2Location'
IP2LocObj = IP2Location.new()
IP2LocObj.open("data/IP-COUNTRY-SAMPLE.BIN")
rec = IP2LocObj.get_all("19.5.10.1")
puts rec.country_short
puts rec.country_long
puts rec.city
puts rec.region
puts rec.isp
puts rec.latitude
puts rec.longitude
puts rec.domain
puts rec.zipcode
puts rec.timezone
puts rec.netspeed
|
| |
| |
| |
|
|
|
 |
| |
|
|
| |
|
|
 |
| |
|
|
| |
|
|
 |
| |
Earn up to 20% on Sales from New
Customer and
2-Year Return Commission |
|
| More
Information |
|
|
|
|
 |
| "No doubt why security expert, Mike Schiffman, author of
the Hacker’s Challenge book series recommended IP2Location™ in IP Geo project". |
|
| - S. Jones, California (United States)
|
|
| "I am very satisfied with my purchase for my ip address
log analysis project. Got my account immediately right after order approved. No
hassle or delay time at all as I always thought. A must to meet project
deadline".
|
|
| - J. Wagner, New York (United States)
|
|
| "Innovative products with low price tags compared with
others million dollars geo-targeting products". |
|
| - Balakrishnan, Bangalore (India)
|
|
|
|
|
 |
|
|
|
 |
|
|
|
 |
| |
| Take a closer look in this in-depth tour and learn
more about IP2Location™ products: |
|
|
|
|
|
|
|
|
 |
 |
|
|
|
|