从 place_id 获取 Google 地图链接 [英] Getting Google Maps link from place_id
本文介绍了从 place_id 获取 Google 地图链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿嘿,使用谷歌地图 API 进行搜索,我可以找到某个地方,然后存储它的详细信息.但是,该数组不包含可在 google 地图上打开此地点的 google maps 链接.
HeIIo, using google map API with search I'm able to find a certain place and then store it's details. However, the array doesn't contain google maps link which would open this place on google maps.
通过 API,我收到了 place_id,我觉得它应该足以构建一个完整的谷歌地图链接;但是,我找不到办法做到这一点.任何人都可以建议我如何做到这一点.
Via API I receive place_id which, as I feel, should be enough to build a full google maps link; however, I can't find a way to do that. Can anyone advise me on how to do that.
感谢您的宝贵时间.
推荐答案
试试下面的语法.希望能帮到你
Try below syntax. I hope it helps
https://www.google.com/maps/place/?q=place_id:ChIJp4JiUCNP0xQR1JaSjpW_Hms
这篇关于从 place_id 获取 Google 地图链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文