Restrict autocomplete results by setBoundsBias

倾然丶 夕夏残阳落幕 提交于 2019-11-29 14:51:20

The bounds bias is not a strict filter, so there is no guarantee that places outside of the area are not included. Currently the Places API for Android doesn't have an option to apply strict bounds.

A couple of months ago the ability to apply the strict bounds filter was introduced in Places API web service and in places library of Maps JavaScript API. You can refer to this feature request in the issue tracker:

https://buganizer.corp.google.com/issues/35826806

However, the Places API for Android and Places API for iOS are still missing this feature.

I have created a feature request in the public issue tracker for Android:

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

and for iOS:

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

Please star these feature requests to add your vote and subscribe to updates from Google.

Hopefully, one day they will implement this feature.

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