gpt4 book ai didi

java - Google map : input Lat and Long and receive images, 信息、名称等

转载 作者:太空宇宙 更新时间:2023-11-04 12:25:11 25 4
gpt4 key购买 nike

我正在android studio中制作一个应用程序,用户可以输入纬度和经度点,然后将打开一个新的 Activity ,其中包含位置名称、图像和可能的一些信息段落。

我不太确定如何解决这个问题,以及使用哪些 API;如果有人可以通过一些方便的提示和/或代码 fragment 为我指明正确的方向,我将不胜感激!

谢谢。

最佳答案

您可以使用Google Places APIGoogle Places API Web Service .

根据the documentation for the Google Places API Web Service ,您可以使用类似

的查询来检索地点详细信息

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

您将收到包含地点详细信息的 JSON 或 XML 响应。

您甚至可以访问地点照片 (documentation),以访问存储在地点和 Google+ 数据库中的照片。

考虑到您需要 API key 来查询这些服务,因此您可能需要检查 the pricing and plans options .

关于java - Google map : input Lat and Long and receive images, 信息、名称等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38458212/

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