diff --git a/TravelKit/TKPlace.m b/TravelKit/TKPlace.m index 09a603a..a5102dc 100644 --- a/TravelKit/TKPlace.m +++ b/TravelKit/TKPlace.m @@ -148,7 +148,7 @@ - (instancetype)initFromResponse:(NSDictionary *)dictionary // Parents NSString *parentID = nil; NSMutableArray *locationIDs = [NSMutableArray array]; - for (NSString *parentDict in [dictionary[@"parent_ids"] parsedArray]) + for (NSString *parentDict in [dictionary[@"parents"] parsedArray]) if ((parentID = [parentDict[@"id"] parsedString])) [locationIDs addObject:parentID]; _parents = locationIDs; @@ -171,9 +171,9 @@ - (instancetype)initFromResponse:(NSDictionary *)dictionary [flags addObject:@"has_geometry"]; _flags = [flags array]; - } + } - return self; + return self; } - (NSUInteger)displayableHexColor