The weather variable to be changed.
The converted string.
Obtains the CSRF token with the key XSRF-TOKEN from the stored cookie.
The CSRF toke.
Creates put options with a GeoJSON representation of the location in the body.
The name of the location to be put to the server.
The longitute coordinate of the location.
The latitude coordinate of the location.
The put options create, which include a X-XSRF-TOKEN header for the CSRF token.
Displays a message to te user that there was a problem connecting to the server.
Cretes a string for tomorros's date.
Tomorrow's date formatted in terms of day of the month, month, and year.
Cretes a string for tomorrow's date.
Tomorrow's date formatted in terms of day of the month, month, and year.
Converts a weather variable that may be selected by the user to a mapping suffix for an endpoint on the server. The initial character of the weather variable is changed to lower case and words are concatenated. For example, 'Wind Direction' is converted to 'windDirection'.
The weather variable.
The converted string.
Generated using TypeDoc
Changes second word in a weather variable to lower case if present so that the second word is not capitalised in a sentence. For example, the weather variable 'Wind Direction' would be changed to 'Wind direction'.