View Source ExOwm.RequestString (ExOwm v1.3.1)
Module responsible for creating request strings for OpenWeatherMap API calls. It supports various API endpoints and allows for dynamic construction of query strings based on provided parameters.
Summary
Functions
Builds request string based on provided params.
Functions
Builds request string based on provided params.
Parameters
api_call_type
(atom): The type of API call (e.g.,:get_weather
,:get_current_weather
).location
(map): The location parameters (e.g., city, coordinates, zip code).opts
(keyword list): Optional parameters (e.g., type, mode, units, cnt, lang).
Returns
- (String.t()): The constructed request string.