APP: Query cities list from the web
Task: Query the list of cities / locations from the internet.
Solution:
- One possible solution is to use AccuWeather's city search API.
- Another possible solution is to use OpenWeather's city query (https://www.javacodegeeks.com/2014/04/using-android-location-api-in-weather-app-search-city.html)
- Or alternatively think about something else, firebase, or hardcoded solutions
SOLUTION 2.0: Use Weatherapi.com to query everything. The user enters the name of the location / city and then starts the search, if the status response code is 200 we get the city name, then pass it to loading.dart. Convert it to a WorldTime object and call the getTimeAndWeather method to query everything, and pass that object to home.dart.
Edited by Tóth Zoltán