TKLocationHelper

Objective-C

@interface TKLocationHelper : NSObject

+ (nullable NSString *)nameFromPlacemark:(CLPlacemark *)placemark;
+ (nullable NSString *)addressForPlacemark:(CLPlacemark *)placemark;
+ (nullable NSString *)suburbForPlacemark:(CLPlacemark *)placemark;
+ (nullable NSString *)regionNameForPlacemark:(CLPlacemark *)placemark;

+ (NSString *)expandAbbreviationInAddressString:(NSString *)address;

+ (BOOL)coordinate:(CLLocationCoordinate2D)first isNear:(CLLocationCoordinate2D)second;

@end

Swift

class TKLocationHelper : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)nameFromPlacemark:(CLPlacemark *)placemark;

    Swift

    class func name(from placemark: CLPlacemark) -> String?
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)addressForPlacemark:(CLPlacemark *)placemark;

    Swift

    class func address(for placemark: CLPlacemark) -> String?
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)suburbForPlacemark:(CLPlacemark *)placemark;

    Swift

    class func suburb(for placemark: CLPlacemark) -> String?
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)regionNameForPlacemark:(CLPlacemark *)placemark;

    Swift

    class func regionName(for placemark: CLPlacemark) -> String?
  • Undocumented

    Declaration

    Objective-C

    + (NSString *)expandAbbreviationInAddressString:(NSString *)address;

    Swift

    class func expandAbbreviation(inAddressString address: String) -> String
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)coordinate:(CLLocationCoordinate2D)first isNear:(CLLocationCoordinate2D)second;

    Swift

    class func coordinate(_ first: CLLocationCoordinate2D, isNear second: CLLocationCoordinate2D) -> Bool