An open API service indexing awesome lists of open source software.

https://github.com/sergiocorreia/geocode_ip

Geocode IP addresses in Stata
https://github.com/sergiocorreia/geocode_ip

geocode ip stata

Last synced: 4 months ago
JSON representation

Geocode IP addresses in Stata

Awesome Lists containing this project

README

          

# `geocode_ip`: Geocode IP addresses in Stata

## Usage:

```stata
clear
input str20 ip
104.79.139.192
175.203.224.172
end

geocode_ip ip, clear
list ip country_name zip_code
```

This [do file](test.do) has an example that merges the new data back into the original dataset.

## Syntax

`geocode_ip` *varname* `[if] [in], clear [sleep(0.4)]`

## Features

- Since online queries can fail, this program keeps partial results (so you can resume them easily)
- By default limits its query rate to the maximum allowed by the API conditions (0.4s per request).

## Installation:

```stata
net install geocode_ip, from(https://github.com/sergiocorreia/geocode_ip/raw/master/src/)
```