Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Created by Marcel Molina Jr on 10/8/08.
- //
- #import <UIKit/UIKit.h>
- #import <JSON/JSON.h>
- #import <CoreLocation/CoreLocation.h>
- @class ReverseGeocoder;
- @protocol ReverseGeocoderDelegate
- - (void)reverseGeocoder:(ReverseGeocoder *)geocoder
- lookupReturnedAddress:(NSString *)address;
- @end
- @interface ReverseGeocoder : NSObject {
- NSURL *_url;
- NSString *_responseBody;
- CLLocationDegrees latitude;
- CLLocationDegrees longitude;
- NSMutableString *responsePayload;
- NSDictionary *addressDictionary;
- NSObject<ReverseGeocoderDelegate> *delegate;
- }
- @property (nonatomic, retain) NSString *responsePayload;
- @property (nonatomic, retain) NSDictionary *addressDictionary;
- @property (nonatomic, retain) NSObject<ReverseGeocoderDelegate> *delegate;
- + (void)lookupLatitude:(CLLocationDegrees)aLatitude longitude:(CLLocationDegrees)aLongitude delegate:(id)aDelegate;
- - (id)initWithLatitude:(CLLocationDegrees)aLatitude longitude:(CLLocationDegrees)aLongitude;
- - (void)performLookup;
- - (NSURL *)url;
- - (void)parsePayload;
- - (NSString *)address;
- - (NSString *)streetNumber;
- - (NSString *)street;
- - (NSString *)city;
- - (NSString *)state;
- - (NSString *)_valueForAddressComponentNamed:(NSString *)componentName;
- @end
Add Comment
Please, Sign In to add comment