Skip to content

r0man/geocoder-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geocoder-clj

https://img.shields.io/clojars/v/geocoder-clj.svg https://travis-ci.org/r0man/geocoder-clj.svg https://versions.deps.co/r0man/geocoder-clj/status.svg https://versions.deps.co/r0man/geocoder-clj/downloads.svg

A Clojure library for various geocoder services.

Usage

Bing

(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})

Geonames

(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})

Google

(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})

Maxmind

(require '[geocoder.maxmind :as maxmind])
(def db (geonames/db "/usr/share/GeoIP/GeoIP.dat"))
(maxmind/geocode-ip-address db "92.229.192.11")

License

Copyright (C) 2013-2019 r0man

Distributed under the Eclipse Public License, the same as Clojure.

About

A Clojure library for various geocoder services.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published