17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/postcode_anywhere/capture_plus/interactive.rb', line 17
def query(search_term, options = {})
options.merge!(
'SearchTerm' => search_term
)
options['LastId'] = .new(options.delete(:parent_query)).
options['SearchFor'] = options.delete(:search_for) || EVERYTHING
options['Country'] = options.delete(:country) || 'GBR'
options['LanguagePreference'] = options.delete(:language) || 'EN'
perform_with_objects(
:get,
FIND_ADDRESSES_ENDPOINT,
options,
PostcodeAnywhere::CapturePlus::SearchResult
)
end
|