X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/64fb530581ffd21e2522e70e8a2d4c46d666f760..5a76b08868a8cc7b0b2b88beafb7995f8ed8da09:/app/controllers/geocoder_controller.rb diff --git a/app/controllers/geocoder_controller.rb b/app/controllers/geocoder_controller.rb index 1b2ae340b..556cfb36a 100644 --- a/app/controllers/geocoder_controller.rb +++ b/app/controllers/geocoder_controller.rb @@ -3,6 +3,7 @@ class GeocoderController < ApplicationController require 'net/http' require 'rexml/document' + before_filter :authorize_web before_filter :set_locale def search @@ -76,7 +77,7 @@ class GeocoderController < ApplicationController data = response.split(/\s*,\s+/) # lat,long,town,state,zip @results.push({:lat => data[0], :lon => data[1], :zoom => APP_CONFIG['postcode_zoom'], - :prefix => "#{data[2]}, #{data[3]}, ", + :prefix => "#{data[2]}, #{data[3]},", :name => data[4]}) end