Google Places API搜索关键字和城市 [英] Google Places API Search for Keyword and City
本文介绍了Google Places API搜索关键字和城市的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想允许用户搜索关键字+城市,以返回该关键字在城市中的结果.
I would like to allow users to search for a keyword + city to return results for that keyword in a city.
例如星巴克西雅图"应返回西雅图的所有星巴克.
For example "starbucks Seattle" should return all starbucks in Seattle.
但是,关键字搜索似乎并不包含城市-因此星巴克西雅图"什么也没有返回.
However, it doesn't seem that keyword search includes cities - and so "starbucks seattle" just returns nothing.
我认为自动填充api具有这种功能,而place api没有.
I think the autocomplete api has such functionality, but the places api does not.
有什么建议吗?
推荐答案
尝试使用位置API Textsearch 端点:
这篇关于Google Places API搜索关键字和城市的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文