LeoAndo / OpenWeatherMapKotlinSample

sample for use OpenWeatherMap API (Kotlin)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

日本語版README

Overview

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.
スクリーンショット 2021-08-01 20 29 55

development environment

127751156-0638bd97-e532-43e9-be12-e758a7118141

capture (Pixcel 5 OS:12)

problem of implementation

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

implementation flow

Please proceed with the implementation according to the following procedure
pull request

For java

The Java version of the code will be uploaded soon.

About

sample for use OpenWeatherMap API (Kotlin)


Languages

Language:Kotlin 100.0%