I following this tutorial to get position of center point of v2 GoogleMap .now I want to get the address of the point using reverse geocoding ....
I am using Following code to get LatLang of center point when button is clicked :
@Override
public void onClick(View view) {
if(view.getId()==R.id.btn_set_location){
VisibleRegion visibleRegion = map.getProjection()
.getVisibleRegion();
Point x = map.getProjection().toScreenLocation(
visibleRegion.farRight);
Point y = map.getProjection().toScreenLocation(
visibleRegion.nearLeft);
Point centerPoint = new Point(x.x / 2, y.y / 2);
LatLng centerFromPoint = map.getProjection().fromScreenLocation(
centerPoint);
}
}
I have seen others tutotials to get address using latitude and longitude seperately in my case I have got LatLang ,how to get the address using LatLang..need help here ....if there are others ways to get center point of map and the address of the same point ...any kind of help would be appreciated ...thank you