![](/img/trans.png)
[英]How to display the nearby locations without using google places api?
[英]How can I get the nearby locations without giving type in url?
我正在使用Google地方信息API,并且工作正常。 我想显示附近的地方,为此,我在api url中指定了餐馆的类型:
出现这种情况,我无法为每种类型调用api。 有什么通用的关键词可以到达附近的地方吗?
在Google Places API中,“类型”是可选参数。 如果您设置类型,则将结果限制为仅与该类型匹配的地方。
只需删除type参数并查看结果即可。
https://maps.googleapis.com/maps/api/place/nearbysearch/json
location=12.916263577001692,77.65223027601557&radius=1500&sensor=true&key=MYWORKINGKEY
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.