Is it possible to get latitude and longitude from Google map on touch event?
For example: if i touch the New York on map, it should give me the latitude and longitude of New York.
You can get the location from most of the touch events, e.g.
public boolean onTouchEvent(MotionEvent event) { int X = (int)event.getX(); int Y = (int)event.getY(); GeoPoint geoPoint = mapView.getProjection().fromPixels(X, Y); }
2.1m questions
2.1m answers
60 comments
57.0k users