User Tag List

Results 1 to 2 of 2

Thread: iOS Weather App

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Jaklar's Avatar
    Join Date
    Oct 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation iOS Weather App

    Greets all,

    I am attempting to make a weather app for iOS and have hit a few stumbling blocks. After hours of forum reading and searching for tutorials for certain aspects, I have come up pretty empty.

    So here's where I'm at and what I'd like to accomplish:

    I'm tentatively going to use OpenWeatherMap.org for the data.

    So my app runs the IOS location service and comes up with the Latitude and Longitude coordinates for the user.

    I am then able to submit these coordinates with the Get object with this command:

    http://api.openweathermap.org/data/2.1/find/city?lat="+Str$(Latitude("Location Object"))+&lon="+Str$(Longitude( "Location Object" ))&cnt=10

    The data that is returned looks like this:

    {"message":"type=cityModel:GFS-OWM, zoom=5","cod":"200","calctime":0.0141,"cnt":42,"li st":[

    {"id":88319,"dt":1345284000,"name":"Benghazi",
    "coord":{"lat":32.12,"lon":20.07},
    "main":{"temp":306.15,"pressure":1013,"humidity":4 4,"temp_min":306,"temp_max":306},
    "wind":{"speed":1,"deg":-7},
    "weather":[{"id":800,"main":"Clear","description":"sky is clear"}],
    "clouds":{"all":0},
    "rain":{"3h":0}},
    ,...

    So, my question and confusion rests at this point: What am I to do with this data? How best to extract the field I want, say Temperature, and present that number to the user? (I'm aware the Temp number above is in Kelvin and will have to be converted, but that should be easy enough)

    If someone can point me to a clear tutorial or some information on how to do this, that would make my day. I see a lot of people using "EasyXML", but that isn't iOS compatible. Besides, I believe the data format is JSON and not XML (not sure if it matters or not).

    Anyway, I'm clueless here and need a point of entry to move on from. Seems the more I read, the more confused I get.

    Thanks in advance for any help. If you need further info, let me know.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    StringParser

Similar Threads

  1. ***New*** Weather Library
    By Game_Master in forum File Archive
    Replies: 33
    Last Post: 13th October 2007, 12:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •