A Clojure library for various geocoder services.
(require '[geocoder.bing :as bing])
(def geocoder (bing/geocoder {:api-key "MY-KEY"}))
(bing/geocode-address geocoder "Senefelderstraße 24, 10437 Berlin")
(bing/geocode-location geocoder {:lat 52.54258 :lng 13.42299})
(require '[geocoder.geonames :as geonames])
(def geocoder (geonames/geocoder {:api-key "MY-KEY"}))
(geonames/geocode-address geocoder "Senefelderstraße 24, 10437 Berlin")
(geonames/geocode-location geocoder {:lat 52.54258 :lng 13.42299})
(require '[geocoder.google :as google])
(def geocoder (google/geocoder {:api-key "MY-KEY"}))
(google/geocode-address geocoder "Senefelderstraße 24, 10437 Berlin")
(google/geocode-location geocoder {:lat 52.54258 :lng 13.42299})
(require '[geocoder.maxmind :as maxmind])
(def db (geonames/db "/usr/share/GeoIP/GeoIP.dat"))
(maxmind/geocode-ip-address db "92.229.192.11")
Copyright (C) 2013-2019 r0man
Distributed under the Eclipse Public License, the same as Clojure.