Google Places Android

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

https://maps.googleapis.com/maps/api/place/findplacefromtext/output?parameters
fastwoman 回答:Google Places Android

尝试使用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

本文链接:https://www.f2er.com/3168295.html

大家都在问