开发者

Google Places autocomplete, any way to restrict the location and categories?

Is there any way to filter the Google Places Autocomplete for a specific location and also filter based on categories (like restaurants, malls etc) 开发者_运维问答


Yes, Google Places Autocomplete has type and location parameters.


As of right now, it looks like the AutoComplete API only accepts "establishment" for all non-address places and "geocode" for geographic entities. You might be able to write some JS that makes an additional Google Places API call for each possibility and returns a new array of full Google Places API details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜