smeijer/L.GeoSearch — pull request #36 by kreegr (2014-01-15 03:05:42+00:00)
Title: Add bbox from bing to result location.

This can be then used in a geosearch_showlocation in a call to fitbounds with something like:

var _setBoundsFromGeoLocationResult = function(locationResult){
var location = locationResult.Location;
var bbox = location && location.bbox;
if (bbox) {
var southWest = new L.LatLng(bbox[0], bbox[1]);
var northEast = new L.LatLng(bbox[2], bbox[3]);
var bounds = new L.LatLngBounds(southWest, northEast);
map.fitBounds(bounds);
}
}