alexreisner/geocoder — Issue #155: Support for things like the "bounds=" option for the Google geocoding service
Author: rosscooperman
Created: 2011-12-30 16:36:47+00:00
State: open

Hey Alex,

When you have a minute can you take a look at the last three commits on my fork:

https://github.com/rosscooperman/geocoder/commits/provider_options

I implemented an (optional) options parameter to Geocoder.search that will allow you to say something like:

```ruby
Geocoder.search("Some Intersection", :bounds => [[40.0, -120.0], [39.0, -121.0]])
```

to bias search results in a given bounds. I only added the functionality to pass the options through to the Google lookup object but I was planning to add viewport biasing to the other lookup providers that support it. As implemented the feature could also be used to implement other provider options. I wanted to run this by you before I take it any further to see if you would consider pulling something like this in.

Thanks!

~Ross