Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.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
Php 需要使用google place api中的某些字符进行搜索_Php_Codeigniter_Google Places Api - Fatal编程技术网

Php 需要使用google place api中的某些字符进行搜索

Php 需要使用google place api中的某些字符进行搜索,php,codeigniter,google-places-api,Php,Codeigniter,Google Places Api,我正在使用GooglePlaceAPI的nearbysearch在我的Web服务中列出所有的酒吧、餐厅,以便为移动应用程序提供列表 我需要搜索像比萨饼然后所有比萨饼和其他相关的餐厅和酒吧应该在列表中 我使用下面的网址,但没有得到任何结果 https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=22.758,75.891&rankby=distance&types=bar|restaurant&

我正在使用GooglePlaceAPI的nearbysearch在我的Web服务中列出所有的酒吧、餐厅,以便为移动应用程序提供列表

我需要搜索像比萨饼然后所有比萨饼和其他相关的餐厅和酒吧应该在列表中

我使用下面的网址,但没有得到任何结果

https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=22.758,75.891&rankby=distance&types=bar|restaurant&keyword=bar|restaurant|wine&name=Pizza&key="My Api Key"

任何人都可以在这方面帮助我吗?

我想你必须使用字典之类的东西,它必须预测用户的选择(就我所知)。您可以在输入文本的输入中实现实时ajax搜索,通过以前插入的字典(例如db或纯文本)进行搜索。

我想您必须使用字典之类的东西,它必须预测用户的选择(就我所知)。您可以在输入文本的输入中实现实时ajax搜索,例如在db或纯文本中搜索先前插入的字典