A simple, efficient geocoder/reverse geocoder with a built-in cache.
Is it extensible? Yes. Is it any good? Absolutely.
Keep calm and add Geocoder to your mix.exs
dependencies:
def deps do
[{:geocoder, "~> 0.4"}]
end
Add it to your starting applications too:
def application do
[applications: [:logger, :geocoder]]
end
Set pool configuration:
config :geocoder, Geocoder.Worker, [
size: 4,
max_overflow: 2
]
Set store configuration:
config :geocoder, Geocoder.Store, [
precision: 4 # the default
]
Let's rumble!
Geocoder.call("Toronto, ON")
Geocoder.call({43.653226, -79.383184})
And you're done! How simple was that?