Here is what we will be developing: Let’s assume you are planning a trip from Bethesda, MD to 90210, CA and you plan to drive (Yeah a road warrior!). You can get the driving directions from many places, including Google. What you also want is, what “what is the weather along the route”. Not only that, you want it for the day you plan to drive (so maybe tomorrow, the day after, or the day after the day after…)
I often need this information. I don’t drive cross country, but I do drive and knowing the weather along the route and for the day I want to drive is very useful to me. I wish we had an app for that. Well, let’s not wish, let’s write one.
In the process, you will learn how to:
a) Use TBXML for XML parsing
b) Use Google Weather, GeoCode and Driving directions APIs
c) Use segmented controls
d) Use TableViews and custom cells
e) Write an app that brings all of this together
Credits: The fine folks at icodeblog started me off with
this article.
Screenshots:
Link to Tutorial:
iConverged Tutorial: RouteWeather Using Google weather and Driving Directions APIs in your iOS apps
Disclaimer: To the best of my knowledge, Google’s terms of service do not allow you to use their APIs for any commercial apps. So it is likely that if you use these APIs, they may never see the light of day in the app store, unless you negotiate a commercial deal with Google, or use some other amenable weather API.
Hope it helps and let me know if you have comments/feedback.