Restrict autocomplete results by setBoundsBias

后端 未结 1 1913
眼角桃花
眼角桃花 2020-12-21 00:59

I am using setBoundsBias for Restrict autocomplete results in google map autocompletePlace, But the result contains places out of range. what is the problem ?



        
相关标签:
1条回答
  • 2020-12-21 01:18

    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.

    0 讨论(0)
提交回复
热议问题