lib/geocoder/lookups/esri.rb in geocoder-1.1.7 vs lib/geocoder/lookups/esri.rb in geocoder-1.1.8

- old
+ new

@@ -1,8 +1,7 @@ require 'geocoder/lookups/base' require "geocoder/results/esri" -require 'rack/utils' module Geocoder::Lookup class Esri < Base def name @@ -31,22 +30,19 @@ return [] end end def query_url_params(query) + params = { + :f => "pjson", + :outFields => "*" + } if query.reverse_geocode? - { - :location => query.coordinates.reverse.join(','), - :outFields => :*, - :p => :pjson - }.merge(super) + params[:location] = query.coordinates.reverse.join(',') else - { - :f => :pjson, - :outFields => :*, - :text => query.sanitized_text - }.merge(super) + params[:text] = query.sanitized_text end - end + params.merge(super) + end end end