   (:require [com.lemondronor.orbital-detector :as orbdet]
             [com.lemonodor.gflags :as gflags]
             [clojure.data.xml :as xml]
-            [clojure.string :as string])
+            [clojure.string :as string]
+            [geo.spatial :as spatial])
   (:import ())
   (:gen-class))
 

  (* f 0.3048))


(defn reports2path [rs]
  (let [groups (group-by :icao (filter has-position? rs))
        colors (take (count groups) path-colors)]
    (xml/sexp-as-element
     [:kml {:xmlns "http://www.opengis.net/kml/2.2"}

            [:coordinates
             (string/join
              "\n"
              (distinct (map coordinate (filter-reasonable-speed rs))))]]])
        groups)]])))


