Google has a nice documentation on how to use Place Autocomplete here and here. All of this may seem complicated for a beginner, but in fact is not, because Google developers did all the work. We just need to load the Places library and copy some JS.
For my purpose, I didn't need all of the code. Actually I used only few lines of Javascript and is very simple.
In the pictures below you can see what I did.