Here is the Problem
NearbyFragment.class
:
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == PicklocationActivity.LOCATION_PICKER_ID) {
if (resultCode == RESULT_OK) {
String addressset = data.getStringExtra(PicklocationActivity.LOCATION_NAME);
LatLng latLng = data.getParcelableExtra(PicklocationActivity.LOCATION_LATLNG);
picklocation = addressset;
searchFilter(latLng.getLatitude(), latLng.getLongitude(), addressset);
}
}
}
I would like to change from the Mapbox API to Google location. I just can't solve my problem