Latest Stable Version Total Downloads

IP2Location Ruby Library

This is IP2Location Ruby library that enables the user to find the country, region or state, district, city, latitude and longitude, ZIP/Postal code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, usage type, address type, IAB category and ASN from IP address using IP2Location database. The library reads the geo location information from IP2Location BIN data file or web service.

Supported IPv4 and IPv6 address.

For more details, please visit: https://www.ip2location.com/developers/ruby

Developer Documentation

To learn more about installation, usage, and code examples, please visit the developer documentation at https://ip2location-ruby.readthedocs.io/en/latest/index.html.

Dependencies

This library requires IP2Location BIN data file to function. You may download the BIN data file at

You can also sign up for IP2Location Web Service to lookup by IP2Location API.

IPv4 BIN vs IPv6 BIN

  • Use the IPv4 BIN file if you just need to query IPv4 addresses.
  • Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.

Support

Email: [email protected]
URL: https://www.ip2location.com