vue3-google-address-autocomplete

A Vue 3 component for Google address autocomplete
142,319 6
Install
npm install vue3-google-address-autocomplete
Latest Version:1.1.3
Vue:3
License:MIT
Last Updated:Jul 23, 2023
Links: GitHub  ·  npm
Maintainer: meisam-mulla

vue3-google-address-autocomplete

This project provides a Vue 3 component that uses Google's Places API for address autocomplete functionality.

Prerequisites

Before you begin, you will need a Google Maps API key from Google Cloud Platform Console. You'll also need to enable the Maps JavaScript API and the Places API.

Installation

To install this component in your project, use npm or yarn:

npm install vue3-google-address-autocomplete

or

yarn add vue3-google-address-autocomplete

Usage

Import and register the component:

<template>
  <GoogleAddressAutocomplete 
    apiKey="your_google_api_key"
    v-model="address"
    @callback="callbackFunction"    
    class="css-class-here"
    placeholder="placeholder if you wish"
  />
</template>

<script setup lang="ts">
import { ref } from 'vue';
import GoogleAddressAutocomplete from 'vue3-google-address-autocomplete'

const address = ref('');

const callbackFunction(place) {
   console.log(place);
}
</script>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Related Packages

vue3-google-autocomplete

Vue3 component to get organized payload of Place name, city, state, country and...

16,260 2
vue-google-maps-location-selector

A vuejs google maps component that allows latitude and longitude to be selected...

3,828 9
vue-google-autocomplete

Vue component to Google Places Autocomplete

1,307,599 502
vuejs-auto-complete

A Vue autocomplete component

187,067 134
vue-use-places-autocomplete

📍 Vue composable for Google Maps Places Autocomplete.

77,332 46

Version History

Version Released License
1.1.3 MIT
1.1.2 MIT
1.1.1 MIT
1.1.0 MIT
1.0.5 MIT