mapstraction/mxn — pull request #153 by stefann42 (2012-07-07 23:53:15+00:00)
Title: Bing Maps Locations REST endpoint rejects queries that end in whitespace

When geocoding using Bing Maps provider, for cases where country field is empty, the resulting _address string ends in whitespace. For unknown reasons Bing Maps Locations REST web service (http://msdn.microsoft.com/en-us/library/ff701711.aspx) don't parse that well and returns 404 so geocode_callback is never called.

Ideally line 24 should also be fixed something like _address = query.trim();