OpenStreetMap v0.9.5 OpenStreetMap View Source

Elixir client for Nominatim OpenStreetMap API

Link to this section Summary

Functions

Reverse geocoding generates an address from a latitude and longitude

Search objects by query

Link to this section Functions

Link to this function reverse(options) View Source
reverse(keyword()) :: tuple()

Reverse geocoding generates an address from a latitude and longitude

Example

iex> OpenStreetMap.reverse([format: "json", lat: "52.594417", lon: "39.493115", accept_language: "en"])
{:ok, %{"address" => %{},...}}
Link to this function search(options) View Source
search(keyword()) :: tuple()

Search objects by query

Example

iex> OpenStreetMap.search([q: "135 pilkington avenue, birmingham", format: "json", addressdetails: "1", accept_language: "en"])
{:ok, [%{"address" => %{},...}]}