I want to use information from Google when I search restaurant or some place
i tried to make start an activity when the marker in Google Maps is clicked
so use the onMarkerClick but it have only name, address, place ID what i need
@Override
public boolean onMarkerClick(Marker marker) {
Id = marker.getId();
String Title = marker.getTitle();
String Address = marker.getSnippet();
switch(databaseCheck){
case 1:
Intent intent = new Intent(mActivity, PopupGrid.class);
intent.putExtra("Title" , Title);
intent.putExtra("Address", Address);
getActivity().startActivity(intent);
break;
case 2:
Intent intent2 = new Intent(mActivity, Nodatabase.class);
intent2.putExtra("Title" , Title);
intent2.putExtra("Address", Address);
getActivity().startActivity(intent2);
break;
}
return true;
}
how get other information like phone number, rating and Photo of that location?
See Question&Answers more detail:os