TKNamedCoordinate

open class TKNamedCoordinate : NSObject, NSSecureCoding, Codable, TKClusterable
extension TKNamedCoordinate: TKSortableAnnotation
extension TKNamedCoordinate: TKGeocodable
  • Declaration

    Swift

    public fileprivate(set) var coordinate: CLLocationCoordinate2D { get set }
  • Declaration

    Swift

    @objc
    public var clusterIdentifier: String?
  • Declaration

    Swift

    @objc
    public var name: String?
  • Declaration

    Swift

    @objc
    public var _address: String?
  • Declaration

    Swift

    @objc
    public var address: String? { get set }
  • Declaration

    Swift

    @objc
    public var data: [String : Any]
  • Declaration

    Swift

    @objc
    public var placemark: CLPlacemark? { get }
  • Declaration

    Swift

    @objc
    public var locationID: String?
  • Declaration

    Swift

    @objc
    public var isDraggable: Bool
  • Declaration

    Swift

    @objc
    public var isSuburb: Bool
  • Note

    Fails if annotation does not have a valid coordinate.

    Declaration

    Swift

    @objc(namedCoordinateForAnnotation:)
    public static func namedCoordinate(for annotation: MKAnnotation) -> TKNamedCoordinate?
  • Declaration

    Swift

    @objc
    public init(latitude: CLLocationDegrees, longitude: CLLocationDegrees, name: String?, address: String?)
  • Declaration

    Swift

    @objc
    public init(placemark: CLPlacemark)
  • Declaration

    Swift

    @objc
    public init(coordinate: CLLocationCoordinate2D)
  • Declaration

    Swift

    @objc
    public init(name: String?, address: String?)

Codable

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

NSSecureCoding

  • Declaration

    Swift

    @objc
    public class var supportsSecureCoding: Bool { get }
  • Declaration

    Swift

    @objc
    public required init?(coder aDecoder: NSCoder)
  • Declaration

    Swift

    @objc(encodeWithCoder:)
    open func encode(with aCoder: NSCoder)

Helpers

  • New named coordinate configured with the structured location information of the provided event. Returns nil if there’s no structured location information - meaning, a location string alone is not enough.

    Declaration

    Swift

    @objc(initWithEvent:)
    public convenience init?(_ event: EKEvent)

    Parameters

    event

    Event

  • Declaration

    Swift

    @objc
    public var eventStartTime: Date? { get set }
  • Declaration

    Swift

    @objc
    public var eventEndTime: Date? { get set }
  • Declaration

    Swift

    @objc
    public var phone: String? { get set }
  • url

    Declaration

    Swift

    @objc
    public var url: URL? { get set }
  • Declaration

    Swift

    @objc
    public var isDropped: Bool { get set }

TKSortableAnnotation & MKAnnotation

  • Declaration

    Swift

    public var title: String? { get set }
  • Declaration

    Swift

    public var subtitle: String? { get set }
  • Declaration

    Swift

    public var sortScore: Int { get set }
  • Declaration

    Swift

    public var addressForGeocoding: String? { get }
  • Declaration

    Swift

    public var needsForwardGeocoding: Bool { get }
  • Declaration

    Swift

    public func assign(_ coordinate: CLLocationCoordinate2D, forAddress address: String)
  • Declaration

    Swift

    public var didAttemptGeocodingBefore: Bool { get set }
  • Declaration

    Swift

    @objc
    var attributionIsVerified: NSNumber? { get set }
  • Declaration

    Swift

    var dataSources: [TKAPI.DataAttribution] { get set }
  • Declaration

    Swift

    @objc
    var reviewSummary: [String : Any]? { get set }
  • Declaration

    Swift

    @objc
    var what3words: String? { get set }
  • Declaration

    Swift

    @objc
    var what3wordsInfoURL: String? { get set }
  • Declaration

    Swift

    @objc
    public var regions: Set<TKRegion> { get }