Description Usage Arguments Examples
Returns the location coordinates of an IP using an external service. If an IP is indicated the function returns it's estimated location, otherwise it will use the IP of the system.
1 2 3 4 5 6 | getIpCoordinates(ip = getExternalIP(),
service = "freegeoip")
getIpCoordinates.freegeoip(ip = getExternalIP())
getIpCoordinates.hostip(ip = getExternalIP())
|
ip |
an IP address for geolocation (optional default uses the computer) |
service |
the optional service used to obtain the coordinates |
1 2 3 4 5 | # Get computer location
location <- getIpCoordinates()
# Get '10.10.10.10' location
location <- getIpCoordinates('10.10.10.10')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.