Guest User

Untitled

a guest
Feb 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. // Created by Marcel Molina Jr on 10/8/08.
  2. //
  3.  
  4. #import <UIKit/UIKit.h>
  5. #import <JSON/JSON.h>
  6. #import <CoreLocation/CoreLocation.h>
  7. @class ReverseGeocoder;
  8. @protocol ReverseGeocoderDelegate
  9. - (void)reverseGeocoder:(ReverseGeocoder *)geocoder
  10. lookupReturnedAddress:(NSString *)address;
  11. @end
  12.  
  13.  
  14. @interface ReverseGeocoder : NSObject {
  15. NSURL *_url;
  16. NSString *_responseBody;
  17. CLLocationDegrees latitude;
  18. CLLocationDegrees longitude;
  19. NSMutableString *responsePayload;
  20. NSDictionary *addressDictionary;
  21. NSObject<ReverseGeocoderDelegate> *delegate;
  22. }
  23. @property (nonatomic, retain) NSString *responsePayload;
  24. @property (nonatomic, retain) NSDictionary *addressDictionary;
  25. @property (nonatomic, retain) NSObject<ReverseGeocoderDelegate> *delegate;
  26. + (void)lookupLatitude:(CLLocationDegrees)aLatitude longitude:(CLLocationDegrees)aLongitude delegate:(id)aDelegate;
  27. - (id)initWithLatitude:(CLLocationDegrees)aLatitude longitude:(CLLocationDegrees)aLongitude;
  28. - (void)performLookup;
  29. - (NSURL *)url;
  30. - (void)parsePayload;
  31.  
  32. - (NSString *)address;
  33. - (NSString *)streetNumber;
  34. - (NSString *)street;
  35. - (NSString *)city;
  36. - (NSString *)state;
  37. - (NSString *)_valueForAddressComponentNamed:(NSString *)componentName;
  38. @end
Add Comment
Please, Sign In to add comment