我正在尝试使用以下网址和代码连接到谷歌地图来获取附近的地点,但我收到无效的请求。这里似乎有什么问题?
let url = 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?key=...&location=49.1804488%2C-122.7851227'
let results = await axios.get(url)
console.log(results.data)
console.log(results.status)
console.log(results.error_message)
console.log(results.info_messages)