Skip to content

syohex/emacs-geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geoip.el

libGeoIP binding of Emacs Lisp. This package is inspired by mruby-geoip and geoip-api-python.

Screenshot

geoip

Interfaces

(geoip-init db)

Initialize geoip instance from db and return geoip instance. db is database file. You can download it from here.

(geoip-record-by-name geoip host)

Get GetIP record from host and return GeoIPRecord instance.

(geoip-record-by-addr geoip addr)

Get GetIP record from addr and return GeoIPRecord instance.

(geoip-country-code record)

Return country code from record object.

(geoip-region record)

Return region from record object.

(geoip-region-name record)

Return region-name from record object.

(geoip-city record)

Return city from record object.

(geoip-postal-code record)

Return postal code from record object.

(geoip-latitude record)

Return latitude from record object.

(geoip-longitude record)

Return longitude from record object.

(geoip-metro-code record)

Return metro code from record object.

(geoip-area code record)

Return area code from record object.

(geoip-time-zone record)

Return from record object.

About

libGeoIP binding of Emacs Lisp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published