                 #(reset! cur-loc-geocoded (json->clj %))
                 #(reset! cur-loc-geocoded nil))
       true)))
+
+(defn get-coord [{:keys [latitude longitude]}]
+  {:latitude (or latitude 0)
+   :longitude (or longitude 0)})
 
 (defn place-item [{:keys [title address pin-style] [latitude longitude] :center}]
   [touchable-highlight {:on-press #(do

        result          (reaction (when @pin-location (get-places @pin-location pin-geolocation)))
        result2         (reaction (when @pin-location (get-places @pin-location pin-nearby true)))]
    (fn []
      (let [_ @result _ @result2]
        [view
         [view
          [mapview {:initial-center-coordinate (select-keys (:coords geolocation) [:latitude :longitude])
                    :initialZoomLevel 10
                    :onRegionDidChange #(reset! pin-location (js->clj % :keywordize-keys true))
                    :logoIsHidden true

                      [place-item {:title text :address place_name :center center}]
                      (when (not= feature (last (:features @pin-nearby)))
                        [view st/item-separator])])
                   (:features @pin-nearby)))])]))))
