Google Places Android

问题描述 投票:0回答:1

我正在尝试获取某个类型的地点的列表,例如餐馆,某个latlng附近的地点。我调查了适用于Android的Google Places SDK,但找不到该用例的任何内容。它具有自动完成功能和当前位置搜索功能,但是没有用于搜索某种类型的位置以获取参考位置的功能。 Places Web API具有此功能,但我想知道,使用Places的Android SDK是否可以实现相同的功能。像下面这样。这是来自Places API的示例

https://maps.googleapis.com/maps/api/place/findplacefromtext/output?parameters
android google-places-api google-places
1个回答
0
投票

尝试使用Google Places Api

https://developers.google.com/places/web-service/search

尝试使用您的Your_API_KEY进行适当的修改来实现以下api。>

更改参数:半径

类型位置

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=1500&type=restaurant&keyword=cruise&key=Your_API_KEY

© www.soinside.com 2019 - 2024. All rights reserved.