import TomTomSDKSearchOnline
import TomTomSDKSearch
let onlineSearch = OnlineSearch(apiKey: “my key”)
let options = AutocompleteOptions(query: “Piz”, locale: Locale(identifier:“en_GB”))
onlineSearch.autocomplete(options: options) { result in
switch result {
case .success():
//handle success
break
case .failure():
//handle error
break
}
}
Any help please?