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
Post a Comment