How to query autocomplete for restaurants in Google Places API -


i looking example query returns list of restaurants use autocomplete given piece of partial text or without coordinates position.

i see example geocode, returns physical places.

i tried using type=establishment number of results not restaurants.

try code. can check documentation of google places api such questions. supported types listed here

    <label for="restaurant">          <input id="restaurant" name="restaurant">     </label>     <script>         var input = document.getelementbyid('restaurant');         var options = {             types: ['(restaurant)']         };         var searchbox = new google.maps.places.searchbox(input,options);     </script> 

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -