-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMappaAPI.h
executable file
·143 lines (113 loc) · 4.34 KB
/
MappaAPI.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
//
// RootViewController.h
// SimpleMapView
//
// Created by Mayur Birari.
//
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "UserProfileVC.h"
#import "RegexKitLite.h"
#import <CoreLocation/CoreLocation.h>
//#import "WeatherAnnotationView.h"
//#import "MTGalleryViewController.h"
#import <CoreLocation/CLLocationManagerDelegate.h>
#import "Place.h"
#import "PlaceMark.h"
#import "TileOverlay.h"
@class DisplayMap,AppDelegate;
@interface MappaAPI : UIViewController<MKMapViewDelegate,UIApplicationDelegate,UIAlertViewDelegate,UIActionSheetDelegate,NSXMLParserDelegate,CLLocationManagerDelegate> {
CLLocationManager *locationManager;
UIImageView* routeView;
IBOutlet UIButton *osm;
AppDelegate* appDelegate;
Place* origine;
Place* destinazione;
NSArray* routes;
UIColor* lineColor;
CLLocationDistance distance;
NSString *linkdapassare;
NSString *feed;
NSString *feedsubtit;
NSString *feedlat;
NSString *feedlon;
NSString *titlemap;
float *latmap;
float *lngmap;
// MKReverseGeocoder *reverseGeocoder;
IBOutlet UIBarButtonItem *backbutton;
IBOutlet UIBarButtonItem *locationbutton;
IBOutlet MKMapView* mapView;
IBOutlet UserProfileVC* userProfileVC;
IBOutlet UIButton *cmdMiaPosizione;
IBOutlet UIBarButtonItem *percorsobutton;
IBOutlet UISegmentedControl *segmentTipoMappa;
IBOutlet UISegmentedControl *segmentTipoPin;
IBOutlet UISegmentedControl *segmentposizione;
IBOutlet UIToolbar *toolbar;
IBOutlet UITextField *percorsotextview;
// parser XML
NSXMLParser *rssParser;
// elenco degli elementi letti dal feed
NSMutableArray *elencoFeed;
//variabile temporanea pe ogni elemento
NSMutableDictionary *item;
// valori dei campi letti dal feed
NSString *currentElement;
NSMutableString *currentTitle, *currentCategory, *currentSummary, *currentLink, *currentImage, *currentLat, *currentLong, *currentCheck, *currentAddr,*currentWWW, *currentEmail;;
// IBOutlet UIButton *arbutton;
NSTimer *mytimer;
int pin;
NSMutableArray *shopPoints;
// NSMutableArray *elencoFeed;
// NSMutableDictionary *item;
// ARViewController *cameraViewController;
NSString *indirizzoshare;
MBProgressHUD *_hud;
int par;
int chiese;
IBOutlet UITextField *chieser;
IBOutlet UITextField *gothere;
IBOutlet UIBarButtonItem *menu;
UIImageView *barra;
// IBOutlet UIWindow *window;
}
//@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, strong) NSDictionary *tracks;
- (id)calculateRoutesDistanceFrom:(CLLocationCoordinate2D) f to: (CLLocationCoordinate2D) t;
- (void) showRouteFrom: (Place*) f to:(Place*) t typePath:(NSString*)type;
- (void) showMap: (Place*) t;
- (IBAction)gestioneZoom:(id)sender;
- (IBAction)gestioneScroll:(id)sender;
- (IBAction)scegliPercorso;
@property (nonatomic, retain) IBOutlet UIImageView *barra;
@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;
@property (nonatomic, retain) NSString *feed;
@property (nonatomic, retain) NSString *linkdapassare;
@property (nonatomic, retain) NSString *feedsubtit;
@property (nonatomic, retain) NSString *feedlat;
@property (nonatomic, retain) NSString *feedlon;
@property (nonatomic, retain) NSString *titlemap;
//@property (nonatomic, retain) float *latmap;
//@property (nonatomic, retain) float *lngmap;
@property (nonatomic, retain) Place* origine;
@property (nonatomic, retain) Place* destinazione;
@property (nonatomic, retain) Place* dest;
@property (nonatomic, retain) UIColor* lineColor;
@property (nonatomic, retain) TileOverlay *overlay;
+ (CGFloat)annotationPadding;
+ (CGFloat)calloutHeight;
@property (retain) MBProgressHUD *hud;
-(IBAction)goBack;
@property(nonatomic,retain) IBOutlet MKMapView* mapView;
@property(nonatomic,retain) NSString *indirizzoshare;
@property(nonatomic,retain) IBOutlet UserProfileVC* userProfileVC;
@property (nonatomic, retain) IBOutlet UISegmentedControl *segmentposizione;
@property (nonatomic, retain) IBOutlet UIButton *cmdMiaPosizione;
- (IBAction)visualizzaMiaPosizione:(id)sender;
- (IBAction)mostraTipoMappa:(id)sender;
-(NSMutableArray *)decodePolyLine: (NSMutableString *)encoded;
-(void) updateRouteView;
-(NSArray*) calculateRoutesFrom:(CLLocationCoordinate2D) from to: (CLLocationCoordinate2D) to typePath:(NSString*)type;
-(void) centerMap;
@end