1

我有一个这样的json:

{ "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))" }

我用

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

现在我需要CLLocationCoordinate2D从路径中制作。谁能解释一下这是怎么做到的?

4

0 回答 0