diff --git a/lib/geocoder/lookups/amazon_location_service.rb b/lib/geocoder/lookups/amazon_location_service.rb index 7179430e2..101d0874b 100644 --- a/lib/geocoder/lookups/amazon_location_service.rb +++ b/lib/geocoder/lookups/amazon_location_service.rb @@ -10,6 +10,9 @@ def results(query) # Aws::ParamValidator raises ArgumentError on missing required keys params.merge!(index_name: configuration[:index_name]) + # Inherit language from configuration + params.merge!(language: configuration[:language]) + # Aws::ParamValidator raises ArgumentError on unexpected keys params.delete(:lookup)