Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.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
如何实现自动完成附近和位置搜索谷歌API同时工作_Api_Google Maps_Autocomplete_Keyword Search - Fatal编程技术网

如何实现自动完成附近和位置搜索谷歌API同时工作

如何实现自动完成附近和位置搜索谷歌API同时工作,api,google-maps,autocomplete,keyword-search,Api,Google Maps,Autocomplete,Keyword Search,我可以使用谷歌地图自动完成API同时按位置和关键字(如餐厅/酒店等)搜索吗 我想实现Google地图搜索输入框功能: <script src="https://maps.googleapis.com/maps/api/js?key='YOUR_API'&libraries=places&callback=initMap" async defer></script> 只是一条评论:你有空间js吗?键这里,这似乎不正确。@Al-Mothaf

我可以使用谷歌地图自动完成API同时按位置和关键字(如餐厅/酒店等)搜索吗

我想实现Google地图搜索输入框功能:

<script
    src="https://maps.googleapis.com/maps/api/js?key='YOUR_API'&libraries=places&callback=initMap"
    async defer></script>


只是一条评论:你有空间
js吗?键
这里,这似乎不正确。@Al-Mothafar:如果这是这个问题唯一的错误。。。我不熟悉谷歌地图API。那个URL应该是什么样子?