'vuegoogle Autocomplete how to use filter option
I used the 'vueGoogleAutocomplte' package to get location details by typing in an input box. It works, but it does not show all places. for example, if I am typing a city name the result will show someplace related to that city. but if I type a company/restaurant name it does not show. but try the same API key on an HTML project I get the result that I want. in vuejs project, I didn't get all data. please help to solve the problem
import VueGoogleAutocomplete from "vue-google-autocomplete";
export default {
components: {
VueGoogleAutocomplete,
},
<template>
.........................
..........................
<vue-google-autocomplete
id="map"
classname="form-control"
placeholder="Start typing"
v-on:placechanged="getAddressData"
:class="{
'is-invalid': submitted && location_err,
}"
>
</vue-google-autocomplete>
</template>
in index.html page
<script src="https://maps.googleapis.com/maps/api/js?key=APIKEY=initMap&libraries=places&type=establishment" defer></script>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
