Home telegram - location
Post
Cancel

telegram - location

1
2
search: import CoreLocation

Geocoding

1
2
3
public func geocodeLocation(dictionary: [String: String]) -> Signal<(Double, Double)?, NoError>

public func reverseGeocodeLocation(latitude: Double, longitude: Double) -> Signal<ReverseGeocodedPlacemark?, NoError>

struct ReverseGeocodedPlacemark

1
2
3
public let street: String?
public let city: String?
public let country: String?

TGLocationHelper

1
2
3
4
5
6
7
8
9
+ (SSignal *)geocodeAddress:(NSString *)address
+ (SSignal *)geocodeAddressDictionary:(NSDictionary *)dictionary
+ (SSignal *)reverseGeocodeCoordinate:(CLLocationCoordinate2D)coordinate
+ (SSignal *)cityForCoordinate:(CLLocationCoordinate2D)coordinate
+ (SSignal *)driveEta:(CLLocationCoordinate2D)destinationCoordinate

+ (void)storeLastKnownUserLocation:(CLLocation *)location
+ (CLLocation *)lastKnownUserLocation
+ (SSignal *)userLocation:(SVariable *)locationRequired

DeviceLocationManager

1
2
private var currentLocation: CLLocationCoordinate2D?
private let manager: CLLocationManager

protocol SharedAccountContext

1
var locationManager: DeviceLocationManager? { get }
This post is licensed under CC BY 4.0 by the author.