i have nsdictionary , don't know how can retrieve value of "@mode" , "@route" (this json response).
how can that?
thanks!
this nsdictionary :
{ "@mode" = walk; "@route" = "rue university"; distance = "17.513516908661757"; duration = 13000; endtime = "2011-04-29t12:08:59.395-04:00"; = { geometry = "{\"type\": \"point\", \"coordinates\": [-73.57120386807037,45.503820214186405]}"; lat = "45.503820214186405"; lon = "-73.57120386807037"; name = "rue university"; }; leggeometry = { length = 3; points = "{mvtg`k``mod@me"; }; starttime = "2011-04-29t12:08:46.395-04:00"; steps = { walksteps = ( { absolutedirection = northwest; becomes = false; distance = "17.513516908661757"; elevation = ""; lat = "45.503820214186405"; lon = "-73.57120386807037"; stayon = false; streetname = "rue university"; }, { absolutedirection = north; becomes = true; distance = "0.0"; elevation = ""; lat = "45.50390573910769"; lon = "-73.57139257694809"; relativedirection = right; stayon = false; streetname = "street transit link"; } ); }; = { geometry = "{\"type\": \"point\", \"coordinates\": [-73.571363,45.503971]}"; lat = "45.503971"; lon = "-73.571363"; name = "station mcgill"; stopid = 32; };
looks object @ index 0 nsdictionary.
nsdictionary *dict = [array objectatindex:0]; nsstring *route = [dict objectforkey:@"@route"];
Comments
Post a Comment