Autocomplete is a feature of the Places library in the Google Maps JavaScript API. You can use autocomplete to give your applications the type-ahead-search behavior of the Google Maps search field. When a user starts typing an address, autocomplete will fill in the rest.
docs
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete
demo
screenshot