从place_id获取Google地图链接 [英] Getting Google Maps link from place_id

查看:132
本文介绍了从place_id获取Google地图链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

他用搜索功能使用Google地图API,我可以找到某个地方,然后存储它的详细信息。但是,该数组不包含可在Google地图上打开此地点的Google地图链接。

通过API,我收到place_id,据我所知,这应该足以构建完整的Google地图链接;但是,我找不到一种方法来做到这一点。任何人都可以告诉我如何做到这一点。



谢谢您的宝贵时间。

解决方案

试试上面的语法。我希望它有帮助

  https://www.google.com/maps/place/?q=place_id:ChIJp4JiUCNP0xQR1JaSjpW_Hms 


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.

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.

Thank you for your time.

解决方案

Try above syntax. I hope it helps

https://www.google.com/maps/place/?q=place_id:ChIJp4JiUCNP0xQR1JaSjpW_Hms

这篇关于从place_id获取Google地图链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆