The question is: I’m given the coordinates in the center of the map, I’ll send these coordinates to the geocoder and get the address. I use the following code to get the center of the map, but the problem is that I get the coordinates even with minor changes, and thus exceeds the limit of requests. How do I get the coordinates when I removed my finger from the screen?

@Override public void onCameraChange(CameraPosition cameraPosition) { LatLng center = mMap.getCameraPosition().target; double latitude = center.latitude; double longitude = center.longitude;}); 
  • one
    I think that you can request coordinates from the camera as much as you like, but the address is not so often. And why don't you hang the OnTouchListener handler in which to perform actions after ACTION_UP with the latest received coordinates from onCameraChange ?! - Vitalii Obideiko

1 answer 1

Vitaly Obideiko November 5 at 12:29 pm I think that it’s possible to request coordinates from the camera as much as you like, but the address is not so common. And why don't you hang the OnTouchListener handler in which to perform actions after ACTION_UP with the latest received coordinates from onCameraChange ?! -