Member-only story

Integrate Google maps autocomplete with Angular & Angular material

Hamdi Bouallague
2 min readMar 25, 2021

--

1. Before you begin :

Create a Google Cloud Platform project with billing enabled.

Enable the Places API from the “APIs & Services” menu of the Google Cloud Console. Then get your API key.

Follow these steps from this link:

2. Create a new Angular project :

Firstly creates a new angular project :

ng new google-maps-autocomplete

3. Install dependancies :

npm i @agm/corenpm i -D @types/googlemapsng add @angular/materialng add @angular-material-extensions/google-maps-autocompletenpm i @angular/flex-layout

4. Import modules :

--

--

Hamdi Bouallague
Hamdi Bouallague

Written by Hamdi Bouallague

I'm Hamdi, a software engineer 👨‍💻, and writer 📝

No responses yet

Write a response