gpt4 book ai didi

android - 更好地理解使用 Google Places Api

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

我想开发一个应用程序,在其中显示用户附近的餐馆。

例如,我想显示与 Android 设备当前位置相关的 3 公里范围内的餐馆名称和地址。

我在网上做了很多阅读,并在 stackoverflow.com 上找到了不同的链接我知道我必须使用 GOOGLE PLACES API,我在这个网站上找到了这个博客的链接 Introducing the Google Places API

我的问题是如何使用 android/Java 来:1. 向此网址发送请求:“https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=MYAPIKEY”2. 然后解析该请求的XML或JSON结果,并显示在列表中供用户查看。

提前感谢任何可以提供帮助的人。

最佳答案

关于android - 更好地理解使用 Google Places Api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6399482/

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