         request.httpMethod = "POST"
         request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
         let jsonData = locationsMarkersArr.remove(at: 0)
-        request.httpBody = jsonData // todo: вот бы отправлять всю очередь одним запросом
+        request.httpBody = jsonData //TODO: вот бы отправлять всю очередь одним запросом
 
         let task = URLSession.shared.dataTask(with: request) { data, response, error in
             guard let _ = data, error == nil else {

            "speed": location.speed,
            "batteryState": UIDevice.current.batteryState.rawValue,
            "batteryLevel": UIDevice.current.batteryLevel,
            //            "deviceModel": UIDevice.current.model,
            //            "deviceLocalizedModel": UIDevice.current.localizedModel,
            "deviceName": UIDevice.current.name,
            //            "deviceSystemName": UIDevice.current.systemName,
            //            "deviceSystemVersion": UIDevice.current.systemVersion
            ])
        while (locationsMarkersArr.count >= LOCATIONS_QUEUE_LIMIT) {
            locationsMarkersArr.remove(at: Int(arc4random_uniform(UInt32(LOCATIONS_QUEUE_LIMIT)))) // todo: вот бы удалять результаты с наихудшей точностью
        }
        locationsMarkersArr.append(jsonData)
        lastLocationTime = Date.init()

//  Created by Alexey on 30.10.16.
//  Copyright © 2016 bamj.pro. All rights reserved.
//

//TODO: try to use https://github.com/malcommac/SwiftLocation
//TODO: add steps counter

import UIKit
import Darwin
