1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGLocationSignals.h
2015-10-01 19:19:52 +03:00

19 lines
595 B
Objective-C

#import <SSignalKit/SSignalKit.h>
#import <CoreLocation/CoreLocation.h>
typedef enum {
TGLocationPlacesServiceNone,
TGLocationPlacesServiceFoursquare,
TGLocationPlacesServiceGooglePlaces
} TGLocationPlacesService;
@interface TGLocationSignals : NSObject
+ (SSignal *)searchNearbyPlacesWithQuery:(NSString *)query coordinate:(CLLocationCoordinate2D)coordinate service:(TGLocationPlacesService)service;
+ (SSignal *)reverseGeocodeCoordinate:(CLLocationCoordinate2D)coordinate;
+ (void)storeLastKnownUserLocation:(CLLocation *)location;
+ (CLLocation *)lastKnownUserLocation;
@end