- Notifications
You must be signed in to change notification settings - Fork4
An OpenCage Geocoder API wrapper written in Elixir
License
NotificationsYou must be signed in to change notification settings
dsantosmerino/open-cagex
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An OpenCage Geocoder API wrapper written in Elixir
- Add
open_cagex
to your list of dependencies inmix.exs
:
defdepsdo[{:open_cagex,"~> 0.1.0"}]end
iex>OpenCagex.set_api_key("YOUR API KEY"):okiex>OpenCagex.geocode("Passatge de la Pau, Barcelona"){:ok,%{"lat"=>41.3778504,"lng"=>2.1778608}}iex>OpenCagex.reverse(41.3780845,2.1751182){:ok,"Moog, Carrer de l'Arc del Teatre, 3, 08001 Barcelona, Spain"}
Documentation can be found onHexDocs.
Clone the repository
git clone git@github.com:dsantosmerino/open-cagex.git
Install dependencies
cd open_cagexmix deps.get
To run the tests
mixtest
To run the lint
mixcredo