Limit Android Google Places API to search only given area

吃可爱长大的小学妹 提交于 2019-12-02 12:27:10

I'm afraid Places API for Android doesn't support strict bounds yet. There is a feature request in Google Issue tracker to implement this:

https://issuetracker.google.com/issues/38188994

Feel free to star this feature request to add your vote and subscribe to notifications from Google.

In the meantime the workaround might be using Places API web service that supports strict bounds and implement the UI manually.

UPDATE

The feature request was marked as Fixed by Google. Have a look at https://stackoverflow.com/a/50134855/5140781 that shows how to apply strict bounds in Places API for Android.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!