<?php
$api = new Autocomplete();
$autocomplete = $api->getAutocompleteApi();
<?php
array Autocomplete::complete($input [, array $other = []])
input
: the input of your userother
: see documentation here https://developers.google.com/places/documentation/autocomplete