Google Places API 是否可以拉取特定类型的地点,例如没有位置的学校?

Can Google Places API pull specific types of places, like schools, without a location?

我想让用户能够搜索他们的学校和 Google 地点 API return 结果列表(学校名称和地址)。

例如。用户输入 "Springfield Elementary",Places API 给出了最高的结果。这可能吗?

而且还不知道用户的位置?

你可以看看 Places API text search.

例如,以下请求可以搜索包含 "Springfield Elementary" 且类型为 "school" 的地点:

https://maps.googleapis.com/maps/api/place/textsearch/json?query=Springfield%20Elementary&type=school&key=YOUR_API_KEY

从视觉上看,它看起来像

希望对您有所帮助!