From: Tom Hughes Date: Tue, 28 Aug 2018 16:56:02 +0000 (+0100) Subject: Tidy whitespace X-Git-Tag: live~2874 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/08f0621d6f9342ab473cd1fdc262a5b6e9a368c3?hp=9fe97ad70f4eba2007801a4c4e083ce86b8d4bbf Tidy whitespace --- diff --git a/app/controllers/geocoder_controller.rb b/app/controllers/geocoder_controller.rb index 3431fb8d3..d92da72b1 100644 --- a/app/controllers/geocoder_controller.rb +++ b/app/controllers/geocoder_controller.rb @@ -49,6 +49,7 @@ class GeocoderController < ApplicationController :zoom => params[:zoom], :name => "#{lat}, #{lon}") end + if lon >= -90 && lon <= 90 && lat >= -180 && lat <= 180 @results.push(:lat => lon, :lon => lat, :zoom => params[:zoom], @@ -61,7 +62,6 @@ class GeocoderController < ApplicationController else render :action => "results" end - else # Coordinates in a query have come with markers for latitude and longitude. if lat < -90 || lat > 90