Packages
A full-featured client for the OpenStreetMap Nominatim API V1 (public and self-hosted), with extensive request validation, robust error-handling and reporting, rate limiting, optional caching, telemetry instrumentation, retry with exponential backoff, and geohash enrichment.
Current section
Files
Jump to
Current section
Files
ex_nominatim
mix.exs
mix.exs
defmodule Nominatim.MixProject do
use Mix.Project
def project do
[
app: :ex_nominatim,
version: "3.0.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
# Docs
name: "ExNominatim",
source_url: "https://github.com/waseigo/ex_nominatim",
homepage_url: "https://overbring.com/software/ex_nominatim",
docs: [
main: "readme",
logo: "./etc/assets/ex_nominatim_logo.png",
assets: %{"etc/assets" => "assets"},
extras: ["README.md"]
],
test_coverage: [summary: [threshold: 80]]
]
end
defp description do
"""
A full-featured client for the OpenStreetMap Nominatim API V1 (public and self-hosted), with extensive request validation, robust error-handling and reporting, rate limiting, optional caching, telemetry instrumentation, retry with exponential backoff, and geohash enrichment.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*", "llms.txt", "config"],
maintainers: ["Isaak Tsalicoglou"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/waseigo/ex_nominatim"
}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:req, "~> 0.5.0"},
{:telemetry, "~> 1.0"},
{:geohash, "~> 1.0", optional: true},
{:cachex, "~> 4.1", only: [:dev, :test], runtime: false},
{:plug, "~> 1.4", only: :test, runtime: false},
{:credo, "~> 1.7.19", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.40.3", only: :dev, runtime: false}
]
end
end