Skip to content
Snippets Groups Projects
Commit d5b4fa46 authored by Ed Freyfogle's avatar Ed Freyfogle Committed by GitHub
Browse files

add support for abbrv param

OpenCage recently added a new optional parameter "abbrv".
Some details: http://blog.opencagedata.com/post/160294347883/shrtr-pls
parent 830ee83c
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ module Geocoder::Lookup ...@@ -47,7 +47,7 @@ module Geocoder::Lookup
:language => (query.language || configuration.language) :language => (query.language || configuration.language)
}.merge(super) }.merge(super)
[:countrycode, :min_confidence, :no_dedupe, :no_annotations, :no_record, :limit].each do |option| [:abbrv, :countrycode, :min_confidence, :no_dedupe, :no_annotations, :no_record, :limit].each do |option|
unless (option_value = query.options[option]).nil? unless (option_value = query.options[option]).nil?
params[option] = option_value params[option] = option_value
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment