Geonames.Helpers (GeoNames-Elixir v1.0.5)

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.

Link to this section 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

Link to this section Functions

Link to this function

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.

Link to this function

required_parameters_provided?(required, opts)

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