gpt4 book ai didi

javascript - 如何获得Google Place ID?

转载 作者:行者123 更新时间:2023-11-29 14:38:45 24 4
gpt4 key购买 nike

我尝试使用 Google Maps API 通过以下 Web 连接器方法连接到 Microsoft PowerBI:https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=54.77614759999999,-1.5605721&radius=2000&type=restaurant&key=INSERT_API_KEY

但这是一个“地点搜索”,不会带来任何详细信息,例如网站或电话号码等。要包含“详细搜索”,我必须使用本主题中提到的 JavaScript 函数:Google Places API - Places detail request undefined

我同时拥有 PowerBI 和 Visual Studio,但只是不习惯 JavaScript。

最佳答案

Place Details 的 Google Places API 端点在

https://maps.googleapis.com/maps/api/place/details/output?parameters

例如,

https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=YOUR_API_KEY

placeid 可以从您之前使用的Place Search API 获得。

如何以编程方式自动化该过程,无论是通过 JavaScript、VBA 还是 Power BI,都取决于您,并且还取决于您希望以后如何使用数据。

关于javascript - 如何获得Google Place ID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41722794/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com