postcode = params[:query][:postcode].upcase
escaped_postcode = postcode.sub(/\s/,'%20')
postcode = params[:query][:postcode].upcase
escaped_postcode = postcode.sub(/\s/,'%20')
end
redirect_to "/index.html?lat=#{lat}&lon=#{lon}&zoom=14"
#redirect_to "/index.html?error=unknown_postcode_or_zip"
end
redirect_to "/index.html?lat=#{lat}&lon=#{lon}&zoom=14"
#redirect_to "/index.html?error=unknown_postcode_or_zip"
# Some other postcode / zip code
# Throw it at geonames, and see if they have any luck with it
Net::HTTP.start('ws.geonames.org') do |http|
# Some other postcode / zip code
# Throw it at geonames, and see if they have any luck with it
Net::HTTP.start('ws.geonames.org') do |http|