The Swackett API supports auto , metric and imperial units via a parameter.
Swackett values are stored in the accepted norm for any given location worldwide (auto). Use the imperial units parameter to call temperatures in Fahrenheit and metric units parameter to call temperatures in Celsius. If no units parameter is provided the auto value will be applied.
Swackett API call FORMAT:
https://data.gateway.swackett.net/app/api/io?key=[api_key]&lat=[lat]&lon=[lon]&units=[units]
swackett API call EXAMPLE:
https://data.gateway.swackett.net/app/api/io?key=0000000000000000&lat=37.8199&lon=-122.4783&units=imperial
ParameterS
units => unit code
Supported languages:
# | Unit Code | Unit |
1 | [No parameter required] | Kelvin |
2 | imperial | Fahrenheit |
3 | metric | Celsius |