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); }
1.4m articles
1.4m replys
5 comments
57.0k users