GeocodeIPs: GeocodeIP addresses

View source: R/GeocodeIPs.R

GeocodeIPsR Documentation

GeocodeIP addresses

Description

Returns the country and continent of a vector of IPv4 or IPv6 strings.

Usage

GeocodeIPs(ips)

Arguments

ips

Character vector of IP addresses.

Details

Uses the MaxMind database from the rgeolocate package. Returns NA when no data is available.

Value

A data.frame with columns

  • ips - the original input ips

  • continent_name - the name of the continent where the IP is located

  • country_name - the name of the country where the IP is located

  • country_code - the 2 letter country code (ISO Alpha-2)

Examples

GeocodeIPs(c("123.51.111.134", "216.27.61.137", "2001:780:53d2::1"))

NumbersInternational/flipAPI documentation built on April 17, 2024, 2:46 p.m.