NSMutableDictionary *root = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
NSDictionary *routes = [root objectForKey: @"Routes"];
NSArray *cities = [routes allValues];
for (NSDictionary *city in cities) {
NSArray *locations = [city allValues];
for (NSDictionary *loc in locations) {
NSDictionary *coord = [loc objectForKey:@"coordinate"];
NSLog(@"%@",[coord objectForKey:@"latitude"]);
}
}
3
solved Accessing Coordinates in Plist – iOS [closed]