Please how implement autocomplete places or directions of Google maps api

Hello friends
please I want you to guide me to be able to implement autocomplete places or directions of google maps, I know that it could be with the textbox extension autocomplete or I do not know how else it can be. Could you help me?