-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGooglePlacesAPI.h
More file actions
44 lines (33 loc) · 1.51 KB
/
Copy pathGooglePlacesAPI.h
File metadata and controls
44 lines (33 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// GooglePlacesAutoComplete.h
// Henry
//
// Created by Samuel Kitono on 9/03/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"
#import "GooglePlaceAutoComplete.h"
#import "GooglePlace.h"
#define GOOGLE_API_KEY @"YOUR_API_KEY"
@class GooglePlacesAPI;
@protocol GooglePlacesAPIDelegate <NSObject>
//Returniing raw dictionary result
-(void) googlePlacesFinishedAutoCompleteRequest:(GooglePlacesAPI *) googlePlaceAPI withResults:(NSArray *) results;
-(void) googlePlacesFinishedDetail:(GooglePlacesAPI *)googlePlaceAPI withDetail:(NSDictionary *) dictResult;
//Returning google places object
-(void) googlePlacesFinishedAutoCompleteRequest:(GooglePlacesAPI *) googlePlaceAPI withResultsGooglePlaceAutoComplete:(NSArray *) results;
-(void) googlePlacesFinishedDetail:(GooglePlacesAPI *)googlePlaceAPI withDetailGooglePlace:(GooglePlace *) googlePlaceResult;
@end
@interface GooglePlacesAPI : NSObject<ASIHTTPRequestDelegate>{
id<GooglePlacesAPIDelegate> delegate;
CLLocationCoordinate2D locationCoordinate;
float radiusSearch;
BOOL isUsingBiasRegion;
}
@property(nonatomic) BOOL isUsingBiasRegion;
@property(nonatomic,assign) id<GooglePlacesAPIDelegate> delegate;
-(void) setBiasingWithLocationCoordinate:(CLLocationCoordinate2D) centerCoordinate andRadiusInMeters:(float) radius;
-(void) returnAutoCompletePlacesWithSearchString:(NSString *) inputSearchString;
-(void) getGooglePlaceDetailWithReference:(NSString *) reference;
@end