We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19f3cd1 + 02bba5b commit e4e2a88Copy full SHA for e4e2a88
lib/geocoder/lookups/amazon_location_service.rb
@@ -11,14 +11,17 @@ def results(query)
11
params.merge!(index_name: configuration[:index_name])
12
13
# Aws::ParamValidator raises ArgumentError on unexpected keys
14
- params.delete(:lookup)
15
-
+ params.delete(:lookup)
+
16
+ # Inherit language from configuration
17
+ params.merge!(language: configuration[:language])
18
19
resp = if query.reverse_geocode?
20
client.search_place_index_for_position(params.merge(position: query.coordinates.reverse))
21
else
22
client.search_place_index_for_text(params.merge(text: query.text))
23
end
24
25
resp.results
26
27
0 commit comments