If you leave the custom location box blank, the weather app will automatically get your current location. If you fill in your own custom location, the weather app will use the coordinates that you supplied. Use
latlong.net to get your custom coordinates.