草庐IT

selectedLocation

全部标签

android - Android 上的 Google Place Picker - 限制区域/半径

有没有办法限制用户可以选择他/她的位置的GooglePlacePicker区域?类似于当前位置的半径。 最佳答案 我认为没有文档可以控制实际PlacePickerIntent中的选择,但您可以在`onActivityResult.这是一个例子:intPLACE_PICKER_REQUEST=1;StringtoastMsg;LocationselectedLocation=newLocation(provider);LocationcurrentLocation=newLocation(provider);doublemaxDist