Skip to content

r0man/geonames-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geonames-clj

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

A Clojure library for some of the Geo Names web services.

Usage

Countries

(require '[geonames.countries :as countries])

(first (countries/countries))
;=> {:area 468,
;=>  :capital "Andorra la Vella",
;=>  :continent {:iso-3166-1-alpha-2 "eu"},
;=>  :currency-code "EUR",
;=>  :currency-name "Euro",
;=>  :fips-code "AN",
;=>  :geonames-id 3041565,
;=>  :iso-3166-1-alpha-2 "ad",
;=>  :iso-3166-1-alpha-3 "and",
;=>  :iso-3166-1-numeric 20,
;=>  :languages ("ca"),
;=>  :name "Andorra",
;=>  :neighbours ("es" "fr"),
;=>  :phone-prefix "376",
;=>  :population 84000,
;=>  :post-code-format "AD###",
;=>  :post-code-regexp "^(?:AD)*(\\d{3})$",
;=>  :top-level-domain ".ad"}

License

Copyright (C) 2013-2019 r0man

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

About

Clojure API for GeoNames.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published