lib/geocoder/lookups/pelias.rb in geocoder-1.5.0 vs lib/geocoder/lookups/pelias.rb in geocoder-1.5.1
- old
+ new
@@ -22,15 +22,14 @@
"#{protocol}://#{endpoint}/v1/#{query_type}?"
end
def query_url_params(query)
params = {
- api_key: configuration.api_key,
- size: 1
+ api_key: configuration.api_key
}.merge(super)
if query.reverse_geocode?
- lat,lon = query.coordinates
+ lat, lon = query.coordinates
params[:'point.lat'] = lat
params[:'point.lon'] = lon
else
params[:text] = query.text
end