A flexible and customizable Svelte component leveraging the Google Maps Places (New) Autocomplete API to provide a user-friendly way to search for and retrieve detailed address information within
your SvelteKit applications.
This component handles API loading, session tokens, fetching suggestions, and requesting place
details, allowing you to focus on integrating the results into your application. Includes features
like debounced input, highlighting of matched suggestions, extensive customization via CSS classes,
and full TypeScript support.
Google Maps API Key: Create an API key with the Places API (New) enabled. Refer to Use API Keys for detailed instructions.
Install the package using npm:
npm i places-autocomplete-svelte
Then, get your Google Maps API Key and start using the component in your Svelte code (see the Basic Usage guide for details).
The PAC Service now offers a simple JavaScript integration. Add powerful address autocompletion to your website by including a single script tag and setting up a callback function to receive the results. For detailed integration instructions and to get started, please visit PAC Service website.