Skip to content

APP: Query cities list from the web

Task: Query the list of cities / locations from the internet.

Solution:

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