alexreisner/geocoder — pull request #135 by peterjm (2011-10-21 20:19:36+00:00)
Title: Add ability to pass options to lookups & make Google lookup understand bounds parameter

I ran into a situation where I needed to pass a bounds parameter to the Google geocoder API, so I made these changes to allow the lookups to have options passed to them. I'm wondering if you're interested in merging this functionality into the core gem?

Note that there's no tests here -- I looked through the test suite, but the fact that test_helper.rb overrides fetch_raw_data means that the bounds code I added would be by-passed. I also checked out the geocoder_test gem, but since these changes don't directly affect the storage functionality, it didn't seem like an appropriate location for the tests, either. If you have any suggestions for how to properly test these changes, I'll be happy to add some proper tests.