projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9fe97ad
)
Tidy whitespace
author
Tom Hughes
<tom@compton.nu>
Tue, 28 Aug 2018 16:56:02 +0000
(17:56 +0100)
committer
Tom Hughes
<tom@compton.nu>
Tue, 28 Aug 2018 16:56:34 +0000
(17:56 +0100)
app/controllers/geocoder_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/geocoder_controller.rb
b/app/controllers/geocoder_controller.rb
index 3431fb8d3f8007035abf255136819df2f8ebfec6..d92da72b1d71b4159c66748124fd1c8a841bf425 100644
(file)
--- 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