]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Fixed up name search and postcode search
[rails.git] / app / controllers / user_controller.rb
index 3837d097609512816176798d7d7339d72d011c8a..b2ac3072cae18d3e30c52978576b24aba2bf685d 100644 (file)
@@ -29,6 +29,18 @@ class UserController < ApplicationController
     end
   end
 
+  def set_home
+    if params[:user][:home_lat] and params[:user][:home_lon]
+    lat = params[:user][:home_lat]
+    lon = params[:user][:home_lon]
+    unless 
+      #check the lat and lon
+    end
+    #make an api request to insert a new node
+    #get the onde id
+    end
+    end
+
   def go_public
     @user.data_public = true
     @user.save