Index of values


C
clear_cache [HostIP]
Clear the internal cache of IP addresses.
connection [HostIP]
Create a connection object.

F
forget [HostIP]
Remove a single IP address from the internal cache.

G
get_city [HostIP]
Example: get_city conn "12.215.42.19" ==> Some "Sugar Grove, IL" For the given IP address (in dotted quad format), return the apparent originating city.
get_country_code [HostIP]
Example: get_country_code conn "12.215.42.19" ==> Some "US" For the given IP address (in dotted quad format), return the apparent originating ISO country code.
get_country_name [HostIP]
Example: get_country_name conn "12.215.42.19" ==> Some "UNITED STATES" For the given IP address (in dotted quad format), return the apparent originating country name.
get_location [HostIP]
Example: get_location conn "12.215.42.19" ==> Some ("41.7696", "-88.4588") For the given IP address (in dotted quad format), return the apparent latitude and longitude.

L
local_copy [HostIP]
If you have downloaded the local copy of the database, use local_copy ().