TheMrugraj / MVAutocompletePlaceSearchTextField

iOS - Subclass of UITextField to achieve autocompletion for Place Search like Google Places, Uber and Much more apps having maps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple issues in method getPlaceDetailForReferance:

daddymac72 opened this issue · comments

Hello, there are multiple issues in method getPlaceDetailForReferance: in PlaceDetail.m. Project won't compile.

For now, just replace that method with

-(void)getPlaceDetailForReferance:(NSString*)strReferance{
NSString *aStrUrl=aStrApiKey?[NSString stringWithFormat:apiURL,strReferance,aStrApiKey]:
[NSString stringWithFormat:apiURLWithoutKey,strReferance];
NSURL *aUrl=[NSURL URLWithString:aStrUrl];
[[GMSPlacesClient sharedClient]lookUpPlaceID:strReferance callback:^(GMSPlace *place, NSError *error) {
if(place){
[_delegate placeDetailForReferance:strReferance didFinishWithResult:place];
}
else{
NSLog(@"%@",error);
}
}];
}

It seems that This is the issue with XCODE version and Block typedef of Google Maps SDK.

that did the trick but a couple more notes for you. aURL comes up as unused in that method. i will make a second issue for the other issue i found.

I just provided the code so that your work can go ahead because for somedays I was not able to manage Git. Anyways thanks. I have made this correction.