venugopal24 / geo-autocomplete

Automatically exported from code.google.com/p/geo-autocomplete
0 stars 0 forks source link

Add a bounds parameter #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The bounds property of the geocoder could be used as a parameter. That would 
enable precise restrictions to the search area.

Example code:

 var bounds = new google.maps.LatLngBounds(
        new google.maps.LatLng(38.5,-1.0),
        new google.maps.LatLng(40.0,0.2));

 $('#demo3_location').geo_autocomplete({
    geocoder_bounds: bounds,
    geocoder_types: 'country',
    mapheight: 100, mapwidth: 200, maptype: 'hybrid'
 });

Original issue reported on code.google.com by juan...@gmail.com on 6 Dec 2010 at 10:58