-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDDPMap.h
45 lines (36 loc) · 1.6 KB
/
DDPMap.h
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
45
//
// DDPMap.h
// minijob
//
// Created by Dario De pascalis on 07/06/14.
// Copyright (c) 2014 Dario De Pascalis. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
@protocol DDPMapDelegate
- (void)reloadTablePlace:(NSMutableArray *)arraySearch;
- (void)addPlacemarkToMap:(MKMapView *)mapView location:(CLLocation *)location;
- (void)saveCurrentLocation:(CLLocation *)location;
- (void)saveCurrentCity:(NSString *)nameCity;
- (void)alertError:(NSString *)error;
@end
@class DDPApplicationContext;
@interface DDPMap : NSObject<CLLocationManagerDelegate>
@property(nonatomic)CLLocationManager *locationManager;
@property (nonatomic, assign) id <DDPMapDelegate> delegate;
@property (strong, nonatomic) DDPApplicationContext *applicationContext;
@property (nonatomic, strong) NSURLConnection *googleConnection;
@property (nonatomic, strong) NSMutableData *responseData;
@property (strong, nonatomic) NSMutableArray *arraySearch;
@property (nonatomic,assign) float latitude;
@property (nonatomic,assign) float longitude;
@property (nonatomic, strong) NSString *language;
@property (nonatomic, strong) NSString *googleMapKey;
@property (nonatomic, assign) float radius;
- (void)fetchPlaceDetail:(NSString *)textSearch;
- (void)addPlacemarkAnnotationToMap:(NSString *)address mapView:(MKMapView *)mapView;
- (void)getGeoPoint;
- (void)reverseGeocodeLocation:(CLLocation *)location;
- (MKMapView *)addPointAnnotation:(MKMapView *)mapView location:(CLLocation *)location;
//- (void)addPlacemarkAnnotationToMap:(CLPlacemark *)placemark addressString:(NSString *)address mapView:(MKMapView *)mapView;
@end