繁体   English   中英

从Google Places API获取POI列表

[英]Getting list of POI from Google Places API

谁能指导如何从特定城市(例如艾哈迈达巴德)获取POI列表。

得到查询https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=23.006000,72.601100&types=point_of_interest&radius=50000&sensor=false&key=YouAPIKey

已经提到“ point_of_interest”它们提供但不确定如何

https://developers.google.com/places/documentation/supported_types

帮助将不胜感激

您需要将任何一种支持的类型传递给针对类型的查询。

将结果限制为与至少一种指定类型匹配的地方。 类型之间应使用竖线符号分隔(类型1 |类型2 |等)。 请参阅支持的类型列表。

https://developers.google.com/places/documentation/supported_types

https://maps.googleapis.com/maps/api/place/textsearch/json?query=places+in+'city'&key='APIKEY'

替换为您的城市和API密钥。

我遇到了相同的问题,我已经尝试过所有有关如何使用Places api作为类型来找到兴趣点的答案:

以下对我有用的查询todo + in + city或country

https://maps.googleapis.com/maps/api/place/textsearch/json?query=todo+in+India&key=yourkey

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM