     private weak var labelLongitude:UILabel!
     private weak var labelIndex:UILabel!
     private let numberFormatter:NumberFormatter
+    private let distanceFormatter:NumberFormatter
     private let kMaxDecimal:Int = 7
+    private let kMaxDistanceDecimal:Int = 2
+    private let kEmpty:String = ""
     
     override init(frame:CGRect)
     {
         numberFormatter = NumberFormatter()
         numberFormatter.numberStyle = NumberFormatter.Style.decimal
         numberFormatter.maximumFractionDigits = kMaxDecimal
+        
+        distanceFormatter = NumberFormatter()
+        distanceFormatter.numberStyle = NumberFormatter.Style.decimal
+        distanceFormatter.maximumFractionDigits = kMaxDistanceDecimal
         
         super.init(frame:frame)
         clipsToBounds = true

    
    func config(index:Int, model:MCreateAnnotation, modelPrevious:MCreateAnnotation?)
    {
        let numberIndex:NSNumber = index as NSNumber
        let numberLat:NSNumber = model.coordinate.latitude as NSNumber
        let numberLon:NSNumber = model.coordinate.longitude as NSNumber
        
        guard
            

        labelIndex.text = stringIndex
        labelLatitude.text = stringLat
        labelLongitude.text = stringLon
        
        if let previous:CLLocationCoordinate2D = modelPrevious?.coordinate
        {
            let location:CLLocation = CLLocation(
                latitude:latitude,
                longitude:longitude)
            let locationPrev:CLLocation = CLLocation(
                latitude:previous.latitude,
                longitude:previous.longitude)
            let distance:CLLocationDistance = location.distance(from:locationPrev)
            let distanceNum:NSNumber = distance as NSNumber
            
            guard
            
                let distanceString:String = distanceFormatter.string(
                    from:distanceNum)
            
            else
            {
                labelDistance.text = kEmpty
                
                return
            }
            
            let completeString:String = "+ \(distanceString) Km"
            labelDistance.text = completeString
        }
        else
        {
            labelDistance.text = kEmpty
        }
    }
}
