根据Place Autocomplete文档,预测数组中的对象没有位置信息。 那么我应该如何获取经纬度的详细信息呢? 以下是我的代码 -
extension ViewController: GMSAutocompleteFetcherDelegate {
func didAutocomplete(with predictions: [GMSAutocompletePrediction]) {
tableData.removeAll()
for prediction in predictions{
tableData.append(prediction.attributedFullText.string)
}
locationTable.reloadData()
}
func didFailAutocompleteWithError(_ error: Error) {
print(error.localizedDescription)
}
GMSAutocompleteFetcher
是什么。你应该解释一下,并可能将相关标签添加到你的问题中。 - Duncan C