make sure both latitude and longitude are set