Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps Google Places API是否可以在没有位置的情况下拉取特定类型的地方,如学校?_Google Maps_Google Places Api_Google Places - Fatal编程技术网

Google maps Google Places API是否可以在没有位置的情况下拉取特定类型的地方,如学校?

Google maps Google Places API是否可以在没有位置的情况下拉取特定类型的地方,如学校?,google-maps,google-places-api,google-places,Google Maps,Google Places Api,Google Places,我希望用户能够搜索他们的学校,Google Places API返回一个结果列表(学校名称和地址) 用户输入“Springfield小学”,Places API给出了最重要的结果。那有可能吗 而且在不知道用户位置的情况下?您可以查看Places API 例如,以下请求可以搜索包含“Springfield小学”且类型为“学校”的地点: https://maps.googleapis.com/maps/api/place/textsearch/json?query=Springfield%20Ele

我希望用户能够搜索他们的学校,Google Places API返回一个结果列表(学校名称和地址)

用户输入“Springfield小学”,Places API给出了最重要的结果。那有可能吗


而且在不知道用户位置的情况下?

您可以查看Places API

例如,以下请求可以搜索包含“Springfield小学”且类型为“学校”的地点:

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

从视觉上看,它看起来像


我希望这有帮助

您可以查看Places API

例如,以下请求可以搜索包含“Springfield小学”且类型为“学校”的地点:

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

从视觉上看,它看起来像

我希望这有帮助