getIPPos | R Documentation |
This is a simple front-end function that determines the location of a machine on the internet specified either by its IP address (a dotted-quad) or by its name (e.g. www.omegahat.org). This determines which of the two C routines to call based on the way the machine is identified.
getIPPos(ip, db = GeoIP_open(GeoIPData, GEOIP_STANDARD))
ip |
the IP address or name of a server |
db |
a reference to the GeoIP database object in which the queries are made |
A list with coordinates and country, region and city names,
zip code, etc. See GeoIPRecord-class
.
Duncan Temple Lang
maxmind.com's GeoIP library and database
GeoIP_record_by_addr
and GeoIP_record_by_name
getIPPos("128.32.135.10")
getIPPos("www.google.com")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.