Description Usage Arguments Value Author(s) References See Also Examples
This function returns geographic information related to one or possibly more IP addresses.
1 | ip2coordinates(ip, session=getCurlHandle())
|
ip |
A string containing a single IP address or multiple, comma-separated IPs. |
session |
This is the CURLHandle object giving the structure for the options and that will process the command. For curlMultiPerform, this is an object of class code MultiCURLHandle-class. |
A data.frame containing
ip.address |
IP address of the request |
ip.address |
Longitude of the IP address' location |
country_name |
Country of origin |
postal_code |
Post code |
region |
State in the US; not sure elsewhere |
locality |
City in the US; not sure elsewhere |
country_code |
Two letter country abbreviation |
dma_code |
Hell if I know |
latitude |
Latitude of the IP address' location |
country_code3 |
If two digits aren't enough! |
area_code |
Area code in the US; not sure elsewhere |
Ryan Elmore
http://www.datasciencetoolkit.org/developerdocs#ip2coordinates
1 2 3 4 | ## Not run:
ip2coordinates("134.184.34.17, 48.82.68.161")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.