2015-05-25 24 views
1

我有地方標識集合,我希望地方選擇器只顯示那些地方作爲結果。有沒有辦法通過placeIDS過濾?在Google Places API中通過placeIDs過濾PlacePicker結果

PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder(); 
    Context context = getApplicationContext(); 

    try { 
     startActivityForResult(builder.build(context), PLACE_PICKER_REQUEST); 
    } catch (GooglePlayServicesRepairableException e) { 
     e.printStackTrace(); 
    } catch (GooglePlayServicesNotAvailableException e) { 
     e.printStackTrace(); 
    } 

回答

0

將您的自定義位置添加到位置選取器在構建器上調用setLatLngBounds()。