When you start a search, you can find the information you’re looking for faster using search predictions by Google Location API. Search predictions are possible search terms you can use that are related to the terms you’re typing and what other people are searching for.
Quick Start with GIT with Documentation
git clone https://github.com/RidwanulHafiz/vue-google-autocomplete-ridwan.git
- Install with NPM
npm install vue-google-autocomplete-ridwan
- Get an API Key from the Google API Console
- Include Google location script with Google API key
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY=places"></script>
HTML component
<input type=text data-name="autocomplete"/>
Import package into component
import location from 'google-autocomplete-ridwan'
Then call it anywhere you need
location.AutoComplete();