A Clojure library for various geocoder services.
Via Clojars: http://clojars.org/geocoder-clj
(require '[geocoder.bing :as bing])
(bing/geocode-address "Senefelderstraße 24, 10437 Berlin")
(bing/geocode-location "52.54258,13.42299")
(require '[geocoder.geonames :as geonames])
(geonames/geocode-address "Senefelderstraße 24, 10437 Berlin")
(geonames/geocode-location "52.54258,13.42299")
(require '[geocoder.google :as google])
(google/geocode-address "Senefelderstraße 24, 10437 Berlin")
(google/geocode-location "52.54258,13.42299")
(require '[geocoder.maxmind :as maxmind])
(def db (maxmind/make-db "/usr/share/GeoIP/GeoIP.dat"))
(maxmind/geocode-ip-address db "92.229.192.11")
(require '[geocoder.maxmind2 :as maxmind2])
(def db (maxmind2/make-db "/usr/share/GeoIP/GeoLite2-City.mmdb"))
(maxmind2/geocode-ip-address db "92.229.192.11")
Copyright (C) 2013-2014 r0man
Distributed under the Eclipse Public License, the same as Clojure.