+ def search_latlon
+ lat = params[:lat].to_f
+ lon = params[:lon].to_f
+ if lat < -90 or lat > 90
+ @error = "Latitude #{lat} out of range"
+ render :action => "error"
+ elsif lon < -180 or lon > 180
+ @error = "Longitude #{lon} out of range"
+ render :action => "error"
+ else
+ @results = [{:lat => lat, :lon => lon,
+ :zoom => params[:zoom],
+ :name => "#{lat}, #{lon}"}]
+
+ render :action => "results"
+ end
+ end
+