rgeolocate
rgeolocate copied to clipboard
#62 - ASN is still empty when databases have values
Fixed lookup of "trait" records" (i.e. ASN, ASO, Connection etc)
Also added "user_type" which is the type (i.e. Hosting, Corporate)
This has only been testes with a full commercial binary MMDB database from db-ip.com.
> ip <- "43.131.30.179"
> geo <- rgeolocate::maxmind(
ip,
geoip_file,
fields = c(
"continent_name",
"country_code",
"country_name",
"region_name",
"city_name",
"latitude",
"longitude",
"timezone",
"postcode",
"isp",
"organization",
"asn",
"aso",
"connection",
"user_type"
)
)
> geo
continent_name country_code country_name region_name city_name latitude
1 Europe DE Germany Hesse Frankfurt am Main 50.1109
longitude timezone postcode isp organization asn
1 8.68213 Europe/Berlin 60313 Aceville Pte.ltd <NA> 132203
aso connection user_type
1 Shenzhen Tencent Computer Systems Company Limited Corporate hosting