项目作者: sergiocorreia

项目描述 :
Geocode IP addresses in Stata
高级语言: Stata
项目地址: git://github.com/sergiocorreia/geocode_ip.git
创建时间: 2017-04-04T14:47:09Z
项目社区:https://github.com/sergiocorreia/geocode_ip

开源协议:MIT License

下载


geocode_ip: Geocode IP addresses in Stata

Usage:

  1. clear
  2. input str20 ip
  3. 104.79.139.192
  4. 175.203.224.172
  5. end
  6. geocode_ip ip, clear
  7. list ip country_name zip_code

This do file 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:

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