alexreisner/geocoder — pull request #498 by johngallagher (2013-08-09 13:37:39+00:00)
Title: Allow bing to search restricted by region

We want to limit our geocoding to just within the UK - if the user enters Manchester, by default when on Bing, it'll find the Manchester in the US.

Supplying the region option for Google geocoding works, but the same option isn't supported on Bing. That's what we've added here.

Also, we've changed the url to be used to the structured version as per http://msdn.microsoft.com/en-us/library/ff701711.aspx

For example, the search pinned to the UK region for Manchester now uses the URL:

http://dev.virtualearth.net/REST/v1/Locations/uk/manchester?key=BingMapsKey

Thanks for a great gem!

John Gallagher
Arnold Clark