TNEntity

@objcMembers
open class TNEntity : NSObject, Codable

An entity contains information about place, address and any additional facets.

  • Provides details of the physical location of a place.

    Declaration

    Swift

    public var address: TNEntityAddress?
  • Distance from the anchor point to the entity in meter.

    Declaration

    Swift

    public var distance: Double?
  • An extended set of attributions for an entity.

    Declaration

    Swift

    public var facets: TNEntityFacets?
  • id

    Unique identifier (entity id) for a place or address

    Declaration

    Swift

    public var id: String?
  • Customized label added to the entity by system or user.

    Declaration

    Swift

    public var label: String?
  • Provides information available for the place of interest.

    Declaration

    Swift

    public var place: TNEntityPlace?
  • Indicates the type of entity.

    Declaration

    Swift

    @objc
    public var type: TNEntityType
  • Distance formatted to string. Rounded and displaying in meters if phone uses metric system or in miles if not

    Declaration

    Swift

    public var formattedDistance: String? { get }