getIpCoordinates: Get location coordinates from an IP

Description Usage Arguments Examples

Description

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.

Usage

1
2
3
4
5
6

Arguments

ip

an IP address for geolocation (optional default uses the computer)

service

the optional service used to obtain the coordinates

Examples

1
2
3
4
5
# Get computer location
location <- getIpCoordinates()

# Get '10.10.10.10' location
location <- getIpCoordinates('10.10.10.10')

drodriguezperez/whereiam documentation built on May 15, 2019, 2:42 p.m.