alexreisner/geocoder — pull request #513 by olancheg (2013-08-30 17:09:47+00:00)
Title: Add support for language param (Google geocoding service)

In case when we need to specify language for Google lookup, there's no way to do this without rewriting configuration variable.

I've added support for `language` param.

For example:
```ruby
Geocoder.search('Петродворец, Россия')
=> [#
[{"long_name"=>"Petergof",
"short_name"=>"Petergof",
"types"=>["locality", "political"]},
{"long_name"=>"gorod Sankt-Peterburg",
"short_name"=>"g. Sankt-Peterburg",
"types"=>["administrative_area_level_2", "political"]},
{"long_name"=>"Saint Petersburg",
"short_name"=>"Saint Petersburg",
"types"=>["administrative_area_level_1", "political"]},
{"long_name"=>"Russia",
"short_name"=>"RU",
"types"=>["country", "political"]}],
"formatted_address"=>"Petergof, Saint Petersburg, Russia",
"geometry"=>
{"bounds"=>
{"northeast"=>
{"lat"=>#,
"lng"=>29.999736},
"southwest"=>{"lat"=>59.846408, "lng"=>29.7878909}},
"location"=>{"lat"=>59.8833333, "lng"=>29.9},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>
{"lat"=>#,
"lng"=>29.999736},
"southwest"=>{"lat"=>59.846408, "lng"=>29.7878909}}},
"types"=>["locality", "political"]}>]
```
with `language` parameter you can receive JSON in specified language
```ruby
Geocoder.search('Петродворец, Россия', language: :ru)
=> [#
[{"long_name"=>"Петергоф",
"short_name"=>"Петергоф",
"types"=>["locality", "political"]},
{"long_name"=>"город Санкт-Петербург",
"short_name"=>"г. Санкт-Петербург",
"types"=>["administrative_area_level_2", "political"]},
{"long_name"=>"город Санкт-Петербург",
"short_name"=>"г. Санкт-Петербург",
"types"=>["administrative_area_level_1", "political"]},
{"long_name"=>"Россия",
"short_name"=>"RU",
"types"=>["country", "political"]}],
"formatted_address"=>"Петергоф, город Санкт-Петербург, Россия",
"geometry"=>
{"bounds"=>
{"northeast"=>
{"lat"=>#,
"lng"=>29.999736},
"southwest"=>{"lat"=>59.846408, "lng"=>29.7878909}},
"location"=>{"lat"=>59.8833333, "lng"=>29.9},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>
{"lat"=>#,
"lng"=>29.999736},
"southwest"=>{"lat"=>59.846408, "lng"=>29.7878909}}},
"types"=>["locality", "political"]}>]
```