How to find all values in NSString

117 views Asked by At

I have a json like this:

{ "fwdTrackGeom": "MULTILINESTRING ((56.307041507017 58.011219723083, 56.307961164317 58.010033333358, 56.308853999526 58.008881008358), (56.308853999526 58.008881008358, 56.309011612988 58.008414442093, 56.309042139956 58.008156999171, 56.309008293909 58.007831344383, 56.308806969015 58.007403489114, 56.308573457613 58.007075104002, 56.307891858088 58.006361480718, 56.306619854144 58.004996722377))" }

I make a string with

NSMutableDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
NSString *path = [json objectForKey:@"fwdTrackGeom"];

And now I need to make CLLocationCoordinate2D from path. Who can explain how do this?

0

There are 0 answers