This is a OpenWeatherMap API Sample Application.
When developing using this app, please add the following settings to local.properties
as shown in the capture below.
Because API KEY is managed as confidential information.
Due to the large number of Web API response values, the type may be incorrect.
I looked at Logcat and fixed some things, but it is possible that I haven't fixed all the data that may come with Double.
PRAlso commented, using Andorid Studio's "JsonToKotlinClass" plugin
I'm just using the data class
that was generated
.
Below is the data class that receives the response
https://github.com/LeoAndo/OpenWeatherMapKotlinSample/tree/main/app/src/main/java/com/example/openweathermapkotlinsample/data/response
Please proceed with the implementation according to the following procedure
pull request
The Java version of the code will be uploaded soon.