GeoNames-Elixir v1.0.2 Geonames.Helpers

The Helpers module provides a simple set of functions used by Geonames-Elixir. There is no real need to use any of the functions defined here directly.

Summary

Functions

For each request to the GeoNames API, the URL parameters must be encoded. This function will take the user supplied parameters, merge them with the configured settings, and encode them into a URL string

Determines whether or not all of the required request parameters have been set

Functions

build_url_string(endpoint, parameters)

For each request to the GeoNames API, the URL parameters must be encoded. This function will take the user supplied parameters, merge them with the configured settings, and encode them into a URL string.

required_parameters_provided?(required, opts)

Determines whether or not all of the required request parameters have been set