views:

50

answers:

2

Using iOS 4, what's the quickest way to obtain the user's current location (assuming they grant it to you) and use it to obtain the current weather conditions and forecast?

I'm mainly interested in solutions that don't have any licensing restrictions and don't use APIs that will ban the app from the app store. Many of the other related questions posted on SO have these limited solutions.

Thanks so much in advance for your thoughts!

+1  A: 

NOAA has free webservice

http://www.nws.noaa.gov/forecasts/xml/

It's updated once an hour.

Lou Franco
A: 

Check out the Yahoo! Weather API @ http://developer.yahoo.com/weather/

Apple is using it for it's Weather.app

The native Apple services are, however being recorded (marketing, PR) and redirected to the Yahoo! Weather services.

You should give it a try.

Kenan Sulayman