We’ve already written code which is responsible for storing the WeatherLocation inside the local database. Our user interface is also prepared to use location. What we haven’t implemented yet properly is the LocationProvider. At the moment it has only dummy functions which return some constant values.
In this tutorial, you’re going to learn how to work with the location of the device and also, how to fall back to user-defined “custom” location if the user doesn’t grant us the location permission.