Last chance! 50% off unlimited learning
Sale ends in
geohost(ip = "", api = c("freegeoip.net", "ipinfo.io"))
geocode
, revgeocode
. freegeoip.net IP lookup API at http://freegeoip.net ipinfo.io IP lookup API at http://ipinfo.io/developers## Not run: ------------------------------------
# # geocode host IP
# geohost()
# geohost(api = "ipinfo.io")
# # specify an IP for geocoding
# geohost(ip = "12.215.42.19")
# geohost(ip = "12.215.42.19", api = "ipinfo.io")
# # geocode multiple IPs
# geohost(ip = c("61.135.169.81", "12.215.42.19"))
# geohost(ip = c("61.135.169.81", "12.215.42.19"), api = "ipinfo.io")
## ---------------------------------------------
Run the code above in your browser using DataLab