mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
19 lines
595 B
Objective-C
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
|