JXLocation.h 821 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // JXLocation.h
  3. // shiku_im
  4. //
  5. // Created by p on 2017/4/1.
  6. // Copyright © 2017年 Reese. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class JXLocation;
  10. @protocol JXLocationDelegate <NSObject>
  11. // 定位后返回地理信息
  12. - (void) location:(JXLocation *)location CountryCode:(NSString *)countryCode CityName:(NSString *)cityName CityId:(NSString *)cityId Address:(NSString *)address Latitude:(double)lat Longitude:(double)lon;
  13. - (void)location:(JXLocation *)location getLocationWithIp:(NSDictionary *)dict;
  14. - (void)location:(JXLocation *)location getLocationError:(NSError *)error;
  15. @end
  16. @interface JXLocation : NSObject
  17. @property (nonatomic, weak) id<JXLocationDelegate> delegate;
  18. // 开始定位
  19. - (void) locationStart;
  20. // 根据ip获取到地理位置
  21. - (void) getLocationWithIp;
  22. @end