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
- Host: GitHub
- URL: https://github.com/sergiocorreia/geocode_ip
- Owner: sergiocorreia
- License: mit
- Created: 2017-04-04T14:47:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-07T05:18:13.000Z (about 9 years ago)
- Last Synced: 2025-08-30T09:35:34.663Z (10 months ago)
- Topics: geocode, ip, stata
- Language: Stata
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)
```