Learn R Programming

rgeolocate (version 0.5.0)

telize: Geolocate IP Addresses Through telize.com

Description

http://www.telize.com{telize.com} provides IP geolocation based on MaxMind's free downloadable databases (one of which is, distinctly, included in this package). telize allows you to query the Telize service to geolocate IPv4 or IPv6 IP addresses.

Usage

telize(ip_addresses, as_data_frame = TRUE)

Arguments

ip_addresses
a vector of IP addresses.
as_data_frame
whether to return the results as a data.frame (TRUE) or a list of named vectors (FALSE). Set to TRUE by default.

Value

  • either a data.frame or a list of named vectors, depending on the option for as_data_frame

Examples

Run this code
#Valid, data.frame output
result <- telize("2607:FB90:426:DC1D:CFC4:4875:8BC2:4D93")

#Invalid, data.frame output
result <- telize("argh")

#Valid list output
result <- telize("2607:FB90:426:DC1D:CFC4:4875:8BC2:4D93", as_data_frame = FALSE)

#Invalid list output
result <- telize("argh", as_data_frame = FALSE)

Run the code above in your browser using DataLab