Overpass.API

Provides the functions to query the Overpass API.

Don’t forget to add the following to your config/config.exs:

config :overpass, url: "http://overpass-api.de/api/interpreter"

Summary

Functions

Querys the OverpassAPI with the given query (xml or overpass ql). Returns a tuple {:ok, {:xml, body}} or {:ok, {:json, body}} on success or {:error, error} on error

Functions

query(query)

Specs

query(String.t) :: {:error, String.t}
query(String.t) :: {:ok, {:xml, String.t}}
query(String.t) :: {:ok, {:json, String.t}}

Querys the OverpassAPI with the given query (xml or overpass ql). Returns a tuple {:ok, {:xml, body}} or {:ok, {:json, body}} on success or {:error, error} on error.