*! version 1.0.0 4apr2017

Title

geocode_ip -- Geocode IP addresses

Syntax

geocode_ip
varname
[if] [in],
clear sleep(#)]

Description

geocode_ip takes a variable with IP addresses and
constructs several location variables (country, region, city, lat, lon, etc.),
using the API service from http://freegeoip.net

Options

Options

clear
Required because this command will replace the current dataset.
To add the data back in the original dataset,
you can preserve it
and then merge thew new dataset, as shown
here.

sleep(#)
How many seconds to wait before each call to the API. Default is 0.4s
(consistent with the 150 requests per minute allowed by the API)

Author

Sergio Correia

sergio.correia@gmail.com

More Information

To see examples, report bugs, contribute, ask for help, etc. please see the project URL in Github:

https://github.com/sergiocorreia/geocode_ip