Package 'ip2location'

Title: Lookup for IP Address Information
Description: Enables the user to find the country, region, district, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation, usage type, address type, IAB category and ASN that any IP address or hostname originates from. Supported IPv4 and IPv6. Please visit <https://www.ip2location.com> to learn more. You may also want to visit <https://lite.ip2location.com> for free database download. This package requires 'IP2Location Python' module. At the terminal, please run 'pip install IP2Location' to install the module.
Authors: Kai Wen Ooi
Maintainer: Kai Wen Ooi <[email protected]>
License: MIT + file LICENSE
Version: 8.1.3
Built: 2025-02-20 03:29:08 UTC
Source: https://github.com/ip2location/ip2location-r

Help Index


Lookup for IP address information

Description

Find the country, region, district, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage type, address type, IAB category and ASN that any IP address or host name originates from. The return values will be depending on the BIN data loaded.

Usage

get_all(ip)

Arguments

ip

IPv4 or IPv6 address

Value

Return all information about the IP address

Examples

## Not run: 
get_all("8.8.8.8")

## End(Not run)

Load IP2Location BIN data

Description

Load the IP2Location BIN data for lookup. Free IP2Location LITE data available for download at <https://lite.ip2location.com/>

Usage

open(bin_location)

Arguments

bin_location

Absolute path of IP2Location BIN data

Examples

## Not run: 
open("~/IP-COUNTRY.BIN")

## End(Not run)

Plot map using IP2Location data.

Description

Plot the country on the map based on IP addresses and its IP2Location country data.

Usage

plot_map(ips)

Arguments

ips

A vector of IP addresses to be plot on

Examples

## Not run: 
plot_map(c("8.8.8.8", "8.8.6.6"))

## End(Not run)