Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I am not sure about ZIP code, but you can give a radius (in meters) around a location (NYC in this case - some place in Brooklyn like so (<a href="http://jsfiddle.net/9KQhL/" rel="nofollow">JSFiddle</a>):</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;ExtJS Google Maps Integration&lt;/title&gt; &lt;!-- Google Map API --&gt; &lt;style type="text/css"&gt; html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } &lt;/style&gt; &lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=geometry&amp;sensor=false&amp;region=US"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&amp;sensor=false"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="map" style="width:100%; height:100%;"&gt;&lt;/div&gt; &lt;script&gt; var latlng = new google.maps.LatLng(40.693308, -73.990659); var options = { zoom: 16, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map"), options); var request = { location: latlng, radius: '1000', name: ['Pizza Hut'] }; var service = new google.maps.places.PlacesService(map); service.search( request, callback ); function callback(results, status) { if (status == google.maps.places.PlacesServiceStatus.OK) { for ( var i = 0; i &lt; results.length; i++ ) { var place = results[i]; var loc = place.geometry.location; var marker = new google.maps.Marker ({ position: new google.maps.LatLng(loc.Pa,loc.Qa) }); marker.setMap(map); } } } &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload