Fixed landmark handling.

This commit is contained in:
John Wiseman 2020-01-29 13:28:23 -08:00
parent 2ed77de13e
commit eee2acbc5e

View File

@ -337,6 +337,7 @@
(dissoc :callsign)
;; TODO: If layer is "county", find the nearest city.
)]
(log-info "Template data: %s %s" nearby info)
info))
@ -417,7 +418,7 @@
;; Note that if we're over the ocean we get null :(
(p/then (p/all [(screenshot (:icao ac) lat lon)
(p/let [nearby (landmark config lat lon)
nearby (:features nearby)
_ (log-info "WOOO %s" nearby)
sqb (if-let [sqb-path (:basestation-sqb config)]
(get-basestation-sqb-record icao sqb-path))]
(let [description (generate-description ac sqb coarse nearby)]